pub enum ImageType {
Jpeg,
Gif,
Png,
PartialJpeg,
Ajpeg,
Ajpegd,
SwfBmp,
SwfAbmp,
}
Expand description
Supported image types
x-partial-jpeg
: JPEG file without Tables/Misc chunk. It has to be defined in aDefineJpegTables
tag and injected in the first Start Of Frame (SOF) JPEG chunk.x-ajpeg
: JPEG with alpha mask (see DefineBitsJPEG3):x-ajpeg
::jpeg_size
jpeg
alpha
x-ajpegd
: JPEG with alpha mask and deblocking (see DefineBitsJPEG4):x-ajpegd
::jpeg_size
deblock
jpeg
alpha
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImageType
impl<'de> Deserialize<'de> for ImageType
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 Ord for ImageType
impl Ord for ImageType
Source§impl PartialOrd for ImageType
impl PartialOrd for ImageType
impl Copy for ImageType
impl Eq for ImageType
impl StructuralPartialEq for ImageType
Auto Trait Implementations§
impl Freeze for ImageType
impl RefUnwindSafe for ImageType
impl Send for ImageType
impl Sync for ImageType
impl Unpin for ImageType
impl UnwindSafe for ImageType
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