pub struct Decoder<R> { /* private fields */ }
Expand description
PNG decoder
Implementations§
Source§impl<R> Decoder<R>
impl<R> Decoder<R>
pub fn with_limits(self, limits: Limits) -> Decoder<R>
pub fn with_context_flags(self, context_flags: ContextFlags) -> Decoder<R>
pub fn with_decode_flags(self, decode_flags: DecodeFlags) -> Decoder<R>
pub fn with_output_format(self, output_format: Format) -> Decoder<R>
Sourcepub fn set_limits(&mut self, limits: Limits)
pub fn set_limits(&mut self, limits: Limits)
Set the limits
Sourcepub fn set_decode_flags(&mut self, decode_flags: DecodeFlags)
pub fn set_decode_flags(&mut self, decode_flags: DecodeFlags)
Set the decoding flags
Sourcepub fn set_output_format(&mut self, output_format: Format)
pub fn set_output_format(&mut self, output_format: Format)
Set the output image format
pub fn set_context_flags(&mut self, context_flags: ContextFlags)
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Decoder<R>where
R: Freeze,
impl<R> RefUnwindSafe for Decoder<R>where
R: RefUnwindSafe,
impl<R> Send for Decoder<R>where
R: Send,
impl<R> Sync for Decoder<R>where
R: Sync,
impl<R> Unpin for Decoder<R>where
R: Unpin,
impl<R> UnwindSafe for Decoder<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more