skia_safe::codec::codecs

Type Alias Decoder

Source
pub type Decoder = Handle<SkCodecs_Decoder>;

Aliased Type§

struct Decoder(/* private fields */);

Implementations§

Source§

impl Decoder

Source

pub fn id(&self) -> &'static str

Source

pub fn is_format(&self, data: &[u8]) -> bool

Source

pub fn from_stream<'a>( &self, stream: &'a mut impl Read, ) -> Result<Codec<'a>, Result>

Trait Implementations§

Source§

impl Debug for Decoder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Send for Decoder

Source§

impl Sync for Decoder