pub enum How {
Inode,
StrongMagic,
Name,
Magic,
Fallback,
}Expand description
How the answer was reached. Kept because the difference matters to a caller: a type from a filename is a statement about intent, one from contents is a statement about bytes, and the fallbacks are neither.
Variants§
Inode
It is not an ordinary file.
StrongMagic
A magic rule the database marks 80 or above.
Name
A filename rule.
Magic
A weaker magic rule.
Fallback
Nothing recognised it: empty, text, or bytes.
Trait Implementations§
impl Copy for How
impl Eq for How
impl StructuralPartialEq for How
Auto Trait Implementations§
impl Freeze for How
impl RefUnwindSafe for How
impl Send for How
impl Sync for How
impl Unpin for How
impl UnsafeUnpin for How
impl UnwindSafe for How
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