Struct DecodeOptions
pub struct DecodeOptions { /* private fields */ }
Decoder configuration options
Implementations
impl DecodeOptions
fn set_ignore_adler32(&mut self, ignore_adler32: bool)When set, the decoder will not compute and verify the Adler-32 checksum.
Defaults to
true.fn set_ignore_crc(&mut self, ignore_crc: bool)When set, the decoder will not compute and verify the CRC code.
Defaults to
false.fn set_ignore_checksums(&mut self, ignore_checksums: bool)Flag to ignore computing and verifying the Adler-32 checksum and CRC code.
fn set_ignore_text_chunk(&mut self, ignore_text_chunk: bool)Ignore text chunks while decoding.
Defaults to
false.fn set_ignore_iccp_chunk(&mut self, ignore_iccp_chunk: bool)Ignore ICCP chunks while decoding.
Defaults to
false.fn set_skip_ancillary_crc_failures(&mut self, skip_ancillary_crc_failures: bool)Ignore ancillary chunks if CRC fails
Defaults to
true
Trait Implementations
impl Clone for DecodeOptions
fn clone(&self) -> Self
impl Default for DecodeOptions
fn default() -> Self
Auto Trait Implementations
impl Freeze for DecodeOptions
impl RefUnwindSafe for DecodeOptions
impl Send for DecodeOptions
impl Sync for DecodeOptions
impl Unpin for DecodeOptions
impl UnsafeUnpin for DecodeOptions
impl UnwindSafe for DecodeOptions
Blanket Implementations
impl<T> Any for DecodeOptions
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DecodeOptions
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DecodeOptions
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DecodeOptions
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DecodeOptions
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for DecodeOptions
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for DecodeOptions
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DecodeOptions
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for DecodeOptions
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>