#[non_exhaustive]pub enum Evidence {
Confirmed,
Unconfirmed,
ByName,
}Expand description
How the outer layer of a resolved Chain was reached.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Confirmed
A magic hit (or, for a magicless format, the extension) that the
format’s own crate::format::ConfirmFn accepted — or that has no
such function, which counts as accepting.
Unconfirmed
Only magic hits (or an extension) that the format’s function refused.
Still resolved, because the lenient verbs must reach a damaged file’s
reader; identify_strict refuses it.
ByName
No magic matched, and the extension named a format that has no confirmation function: a name, and nothing else (brotli, raw deflate).
Trait Implementations§
impl Copy for Evidence
impl Eq for Evidence
impl StructuralPartialEq for Evidence
Auto Trait Implementations§
impl Forget for Evidence
impl Freeze for Evidence
impl RefUnwindSafe for Evidence
impl Send for Evidence
impl Sync for Evidence
impl Unpin for Evidence
impl UnsafeUnpin for Evidence
impl UnwindSafe for Evidence
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