pub enum MediaFormat {
Png,
Jpeg,
Gif,
Webp,
Svg,
Unknown,
}Expand description
Sniff a binary blob’s media format from magic bytes.
Variants§
Trait Implementations§
Source§impl Clone for MediaFormat
impl Clone for MediaFormat
impl Copy for MediaFormat
Source§impl Debug for MediaFormat
impl Debug for MediaFormat
impl Eq for MediaFormat
Source§impl PartialEq for MediaFormat
impl PartialEq for MediaFormat
impl StructuralPartialEq for MediaFormat
Auto Trait Implementations§
impl Forget for MediaFormat
impl Freeze for MediaFormat
impl Move for MediaFormat
impl RefUnwindSafe for MediaFormat
impl Send for MediaFormat
impl Sync for MediaFormat
impl Unpin for MediaFormat
impl UnsafeUnpin for MediaFormat
impl UnwindSafe for MediaFormat
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
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.