pub enum Encoder {
Avif(AvifEncoder),
Bmp(BmpEncoder),
Gif(GifEncoder),
Heic(HeicEncoder),
Ico(IcoEncoder),
Jpeg2000(Jpeg2000Encoder),
Jpeg(JpegEncoder),
Jxl(JxlEncoder),
Png(PngEncoder),
Tiff(TiffEncoder),
Webp(WebpEncoder),
}Expand description
An encoder for Image::encode_with: any of the encoder structs converts into it.
Variants§
Avif(AvifEncoder)
Bmp(BmpEncoder)
Gif(GifEncoder)
Heic(HeicEncoder)
Ico(IcoEncoder)
Jpeg2000(Jpeg2000Encoder)
Jpeg(JpegEncoder)
Jxl(JxlEncoder)
Png(PngEncoder)
Tiff(TiffEncoder)
Webp(WebpEncoder)
Trait Implementations§
impl Copy for Encoder
impl Eq for Encoder
Source§impl From<AvifEncoder> for Encoder
impl From<AvifEncoder> for Encoder
Source§fn from(encoder: AvifEncoder) -> Self
fn from(encoder: AvifEncoder) -> Self
Converts to this type from the input type.
Source§impl From<BmpEncoder> for Encoder
impl From<BmpEncoder> for Encoder
Source§fn from(encoder: BmpEncoder) -> Self
fn from(encoder: BmpEncoder) -> Self
Converts to this type from the input type.
Source§impl From<GifEncoder> for Encoder
impl From<GifEncoder> for Encoder
Source§fn from(encoder: GifEncoder) -> Self
fn from(encoder: GifEncoder) -> Self
Converts to this type from the input type.
Source§impl From<HeicEncoder> for Encoder
impl From<HeicEncoder> for Encoder
Source§fn from(encoder: HeicEncoder) -> Self
fn from(encoder: HeicEncoder) -> Self
Converts to this type from the input type.
Source§impl From<IcoEncoder> for Encoder
impl From<IcoEncoder> for Encoder
Source§fn from(encoder: IcoEncoder) -> Self
fn from(encoder: IcoEncoder) -> Self
Converts to this type from the input type.
Source§impl From<Jpeg2000Encoder> for Encoder
impl From<Jpeg2000Encoder> for Encoder
Source§fn from(encoder: Jpeg2000Encoder) -> Self
fn from(encoder: Jpeg2000Encoder) -> Self
Converts to this type from the input type.
Source§impl From<JpegEncoder> for Encoder
impl From<JpegEncoder> for Encoder
Source§fn from(encoder: JpegEncoder) -> Self
fn from(encoder: JpegEncoder) -> Self
Converts to this type from the input type.
Source§impl From<JxlEncoder> for Encoder
impl From<JxlEncoder> for Encoder
Source§fn from(encoder: JxlEncoder) -> Self
fn from(encoder: JxlEncoder) -> Self
Converts to this type from the input type.
Source§impl From<PngEncoder> for Encoder
impl From<PngEncoder> for Encoder
Source§fn from(encoder: PngEncoder) -> Self
fn from(encoder: PngEncoder) -> Self
Converts to this type from the input type.
Source§impl From<TiffEncoder> for Encoder
impl From<TiffEncoder> for Encoder
Source§fn from(encoder: TiffEncoder) -> Self
fn from(encoder: TiffEncoder) -> Self
Converts to this type from the input type.
Source§impl From<WebpEncoder> for Encoder
impl From<WebpEncoder> for Encoder
Source§fn from(encoder: WebpEncoder) -> Self
fn from(encoder: WebpEncoder) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Encoder
Auto Trait Implementations§
impl Forget for Encoder
impl Freeze for Encoder
impl Move for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnsafeUnpin for Encoder
impl UnwindSafe for Encoder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.