pub struct Detection {
pub language: Language,
pub dialect: Dialect,
pub reason: &'static str,
}Expand description
What detect_language concluded about a file, and on what evidence.
Fields§
§language: LanguageThe language to scan the file as.
dialect: DialectThe dialect that goes with it, Dialect::Standard unless the
evidence named a more specific one.
reason: &'static strWhat decided it: extension, reserved-filename, shebang, or
content.
Trait Implementations§
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 UnsafeUnpin 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