pub struct DecodeOptions { /* private fields */ }Expand description
Public decode options for JPEG reads.
Implementations§
Source§impl DecodeOptions
impl DecodeOptions
Sourcepub fn set_color_transform(&mut self, color_transform: ColorTransform)
pub fn set_color_transform(&mut self, color_transform: ColorTransform)
Override APP14 color-transform detection.
Sourcepub fn color_transform(&self) -> ColorTransform
pub fn color_transform(&self) -> ColorTransform
Current color-transform override.
Sourcepub fn with_color_transform(self, color_transform: ColorTransform) -> Self
pub fn with_color_transform(self, color_transform: ColorTransform) -> Self
Builder-style color-transform override.
Trait Implementations§
Source§impl Clone for DecodeOptions
impl Clone for DecodeOptions
Source§fn clone(&self) -> DecodeOptions
fn clone(&self) -> DecodeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecodeOptions
Source§impl Debug for DecodeOptions
impl Debug for DecodeOptions
Source§impl Default for DecodeOptions
impl Default for DecodeOptions
impl Eq for DecodeOptions
Source§impl PartialEq for DecodeOptions
impl PartialEq for DecodeOptions
Source§fn eq(&self, other: &DecodeOptions) -> bool
fn eq(&self, other: &DecodeOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecodeOptions
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§
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> 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