#[repr(u8)]pub enum ImageCodec {
Jpeg = 0,
Heic = 1,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ImageCodec
impl Clone for ImageCodec
Source§fn clone(&self) -> ImageCodec
fn clone(&self) -> ImageCodec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageCodec
impl Debug for ImageCodec
Source§impl<'de> Deserialize<'de> for ImageCodec
impl<'de> Deserialize<'de> for ImageCodec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ImageCodec> for u8
impl From<ImageCodec> for u8
Source§fn from(val: ImageCodec) -> Self
fn from(val: ImageCodec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ImageCodec
impl PartialEq for ImageCodec
Source§impl Serialize for ImageCodec
impl Serialize for ImageCodec
impl Copy for ImageCodec
impl Eq for ImageCodec
impl StructuralPartialEq for ImageCodec
Auto Trait Implementations§
impl Freeze for ImageCodec
impl RefUnwindSafe for ImageCodec
impl Send for ImageCodec
impl Sync for ImageCodec
impl Unpin for ImageCodec
impl UnwindSafe for ImageCodec
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