pub enum IdentificationMethod {
Override,
Extension,
Magic,
Unknown,
}Expand description
Evidence source used by Converter::identify.
Variants§
Override
Caller supplied the format override.
Extension
A single filename suffix matched a registered ID or extension alias.
Magic
Up to the first 1,024 bytes matched a known signature for a registered format.
Unknown
No known signature or extension matched; the input is treated as binary.
Trait Implementations§
Source§impl Clone for IdentificationMethod
impl Clone for IdentificationMethod
impl Copy for IdentificationMethod
Source§impl Debug for IdentificationMethod
impl Debug for IdentificationMethod
impl Eq for IdentificationMethod
Source§impl PartialEq for IdentificationMethod
impl PartialEq for IdentificationMethod
impl StructuralPartialEq for IdentificationMethod
Auto Trait Implementations§
impl Forget for IdentificationMethod
impl Freeze for IdentificationMethod
impl RefUnwindSafe for IdentificationMethod
impl Send for IdentificationMethod
impl Sync for IdentificationMethod
impl Unpin for IdentificationMethod
impl UnsafeUnpin for IdentificationMethod
impl UnwindSafe for IdentificationMethod
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.