pub struct Sniff {
pub extension: Option<String>,
pub head: Vec<u8>,
}Expand description
Everything detection needs about a file: its extension and its head bytes.
Fields§
§extension: Option<String>§head: Vec<u8>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sniff
impl RefUnwindSafe for Sniff
impl Send for Sniff
impl Sync for Sniff
impl Unpin for Sniff
impl UnsafeUnpin for Sniff
impl UnwindSafe for Sniff
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