pub enum Format {
Png,
Jpeg,
Bmp,
Zip,
Mp4,
Mp3,
Wav,
Flac,
Pdf,
Gif,
Unknown,
}Expand description
The container formats the codecs decode.
The enum is the set of formats the workspace claims to handle. A
member is added in the phase that implements that decoder, not
before — an enum listing a format that does not decode is a lie a
caller can act on. The as_str /
from_str pair is the stable wire form, with
the same rules as Algorithm.
Variants§
Png
PNG.
Jpeg
JPEG.
Bmp
BMP.
Zip
ZIP.
Mp4
MP4.
Mp3
MP3.
Wav
WAV.
Flac
FLAC.
PDF.
Gif
GIF.
Unknown
A format written by a future version of this kit.
Implementations§
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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