Struct kagamijxl::Decoder[][src]

pub struct Decoder {
    pub keep_orientation: Option<bool>,
    pub need_color_profile: bool,
    pub need_optional_preview: bool,
    pub need_optional_dc_frame: bool,
    pub no_full_frame: bool,
    pub max_frames: Option<usize>,
    pub allow_partial: bool,
}

Fields

keep_orientation: Option<bool>need_color_profile: boolneed_optional_preview: boolneed_optional_dc_frame: boolno_full_frame: boolmax_frames: Option<usize>

Specify when you need at most N frames

allow_partial: bool

Specify when partial input is expected

Implementations

impl Decoder[src]

pub fn new() -> Self[src]

pub fn decode(&self, data: &[u8]) -> Result<DecodeResult, &'static str>[src]

pub fn decode_file(&self, file: &File) -> Result<DecodeResult, &'static str>[src]

pub fn decode_buffer(
    &self,
    buffer: impl BufRead
) -> Result<DecodeResult, &'static str>
[src]

Trait Implementations

impl Default for Decoder[src]

Auto Trait Implementations

impl RefUnwindSafe for Decoder

impl Send for Decoder

impl Sync for Decoder

impl Unpin for Decoder

impl UnwindSafe for Decoder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.