pub struct ImageFormat(pub u8);Expand description
Image encodings.
Tuple Fields§
§0: u8Implementations§
Source§impl ImageFormat
impl ImageFormat
pub const PNG: ImageFormat
pub const JPEG: ImageFormat
Trait Implementations§
Source§impl Clone for ImageFormat
impl Clone for ImageFormat
impl Copy for ImageFormat
Source§impl Debug for ImageFormat
impl Debug for ImageFormat
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for ImageFormat
impl<'bytes, Ctx> Decode<'bytes, Ctx> for ImageFormat
Source§impl Default for ImageFormat
impl Default for ImageFormat
Source§impl Display for ImageFormat
impl Display for ImageFormat
Source§impl<Ctx> Encode<Ctx> for ImageFormat
impl<Ctx> Encode<Ctx> for ImageFormat
impl Eq for ImageFormat
Source§impl Hash for ImageFormat
impl Hash for ImageFormat
Source§impl Ord for ImageFormat
impl Ord for ImageFormat
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ImageFormat
impl PartialEq for ImageFormat
Source§impl PartialOrd for ImageFormat
impl PartialOrd for ImageFormat
impl StructuralPartialEq for ImageFormat
Auto Trait Implementations§
impl Freeze for ImageFormat
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnsafeUnpin for ImageFormat
impl UnwindSafe for ImageFormat
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