pub struct Handler {
pub format_name: Option<String>,
pub default_bit_depth: Option<u8>,
pub supports_two_alpha_modes: bool,
pub supports_two_grayscale_modes: bool,
}Fields§
§format_name: Option<String>§default_bit_depth: Option<u8>§supports_two_alpha_modes: bool§supports_two_grayscale_modes: boolImplementations§
Source§impl Handler
impl Handler
pub fn format_name(self, format_name: impl ToString) -> Self
pub fn default_bit_depth(self, default_bit_depth: u8) -> Self
pub fn supports_two_alpha_modes(self, supports_two_alpha_modes: bool) -> Self
pub fn supports_two_grayscale_modes( self, supports_two_grayscale_modes: bool, ) -> Self
pub fn info(&self, decoder: &mut impl ImageDecoder) -> ImageDetails
pub fn frame(&self, decoder: impl ImageDecoder) -> Result<Frame, ProcessError>
pub fn editing_frame( &self, decoder: &impl ImageDecoder, ) -> Result<EditingFrame, ProcessError>
pub fn frame_details( &self, decoder: &mut impl ImageDecoder, ) -> Result<FrameDetails, ProcessError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handler
impl RefUnwindSafe for Handler
impl Send for Handler
impl Sync for Handler
impl Unpin for Handler
impl UnsafeUnpin for Handler
impl UnwindSafe for Handler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more