pub fn to_static<FMT: PixelFormat>(&self) -> Option<std::marker::PhantomData<FMT>> {
        let other = pixfmt::<FMT>();
        if Ok(self) == other.as_ref() {
            Some(std::marker::PhantomData)
        } else {
            None
        }
    }
/// Convert a runtime variant into a static type.
Convert a runtime variant into a static type.
Convert a runtime variant into a static type .
pub fn to_static<FMT: PixelFormat>(&self) -> Option<std::marker::PhantomData<FMT>> {
        let other = pixfmt::<FMT>();
        if Ok(self) == other.as_ref() {
            Some(std::marker::PhantomData)
        } else {
            None
        }
    }
pub fn to_static < FMT : PixelFormat > ( & self ) -> Option < std :: marker :: PhantomData < FMT > > { let other = pixfmt :: < FMT > ( ) ; if Ok ( self ) == other . as_ref ( ) { Some ( std :: marker :: PhantomData ) } else { None } }
Convert a runtime variant into a static type.
Convert a runtime variant into a static type .
&self
&self