pub enum DetectionSource {
ExactFilename,
CompoundExtension,
Extension,
Shebang,
Modeline,
AmbiguousContent,
FormatSignature,
ContentProbe,
Unknown,
}Expand description
Which bounded step established a classification.
Variants§
ExactFilename
An exact basename rule matched.
CompoundExtension
A compound extension such as .tar.gz matched.
Extension
An ordinary extension matched.
Shebang
An unresolved text file’s interpreter matched a shebang rule.
Modeline
A modeline in an unresolved text file named the language.
AmbiguousContent
A required literal resolved an explicitly ambiguous extension.
FormatSignature
A named binary or textual format signature matched.
ContentProbe
A bounded prefix established a binary family.
Unknown
No known rule matched; an extension, when present, is preserved in the type id.
Implementations§
Trait Implementations§
Source§impl Clone for DetectionSource
impl Clone for DetectionSource
impl Copy for DetectionSource
Source§impl Debug for DetectionSource
impl Debug for DetectionSource
impl Eq for DetectionSource
Source§impl Hash for DetectionSource
impl Hash for DetectionSource
Source§impl Ord for DetectionSource
impl Ord for DetectionSource
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DetectionSource
impl PartialEq for DetectionSource
Source§impl PartialOrd for DetectionSource
impl PartialOrd for DetectionSource
impl StructuralPartialEq for DetectionSource
Auto Trait Implementations§
impl Freeze for DetectionSource
impl RefUnwindSafe for DetectionSource
impl Send for DetectionSource
impl Sync for DetectionSource
impl Unpin for DetectionSource
impl UnsafeUnpin for DetectionSource
impl UnwindSafe for DetectionSource
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