Struct lodepng::ffi::DecoderSettings
source · #[repr(C)]pub struct DecoderSettings {
pub zlibsettings: DecompressSettings,
pub ignore_crc: bool,
pub color_convert: bool,
pub read_text_chunks: bool,
pub remember_unknown_chunks: bool,
}
Expand description
Settings for the decoder. This contains settings for the PNG and the Zlib decoder, but not the Info
settings from the Info
structs.
Fields§
§zlibsettings: DecompressSettings
in here is the setting to ignore Adler32 checksums
ignore_crc: bool
ignore CRC checksums
color_convert: bool
§read_text_chunks: bool
§remember_unknown_chunks: bool
Implementations§
Trait Implementations§
source§impl Clone for DecoderSettings
impl Clone for DecoderSettings
source§fn clone(&self) -> DecoderSettings
fn clone(&self) -> DecoderSettings
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecoderSettings
impl Debug for DecoderSettings
Auto Trait Implementations§
impl RefUnwindSafe for DecoderSettings
impl Send for DecoderSettings
impl Sync for DecoderSettings
impl Unpin for DecoderSettings
impl UnwindSafe for DecoderSettings
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