pub struct FileTypeMatch {
pub file_type: FileType,
pub full_match: bool,
}Expand description
Stores information about a specific FileType match result.
Fields§
§file_type: FileTypeFileType that matched
full_match: boolIf the file magic number perfectly matched, or if the match is a probable match.
Implementations§
Source§impl FileTypeMatch
impl FileTypeMatch
pub fn new(file_type: FileType, full_match: bool) -> FileTypeMatch
Trait Implementations§
Source§impl Clone for FileTypeMatch
impl Clone for FileTypeMatch
Source§fn clone(&self) -> FileTypeMatch
fn clone(&self) -> FileTypeMatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileTypeMatch
impl Debug for FileTypeMatch
Source§impl Hash for FileTypeMatch
impl Hash for FileTypeMatch
Source§impl PartialEq for FileTypeMatch
impl PartialEq for FileTypeMatch
impl Eq for FileTypeMatch
impl StructuralPartialEq for FileTypeMatch
Auto Trait Implementations§
impl Freeze for FileTypeMatch
impl RefUnwindSafe for FileTypeMatch
impl Send for FileTypeMatch
impl Sync for FileTypeMatch
impl Unpin for FileTypeMatch
impl UnwindSafe for FileTypeMatch
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