pub enum Detection {
Filename(&'static str),
Extension(&'static str),
Shebang(&'static str),
Heuristics(&'static str),
Classifier(&'static str),
}
Expand description
An enum where the variant is the strategy that detected the language and the value is the name of the language
Variants§
Filename(&'static str)
Extension(&'static str)
Shebang(&'static str)
Heuristics(&'static str)
Classifier(&'static str)
Implementations§
Trait Implementations§
impl Copy for Detection
impl Eq for Detection
impl StructuralPartialEq for Detection
Auto Trait Implementations§
impl Freeze for Detection
impl RefUnwindSafe for Detection
impl Send for Detection
impl Sync for Detection
impl Unpin for Detection
impl UnwindSafe for Detection
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