[][src]Enum hyperpolyglot::Detection

pub enum Detection {
    Filename(&'static str),
    Extension(&'static str),
    Shebang(&'static str),
    Heuristics(&'static str),
    Classifier(&'static str),
}

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

impl Detection[src]

pub fn language(&self) -> &'static str[src]

Returns the language detected

pub fn variant(&self) -> &str[src]

Returns the strategy used to detect the langauge

Trait Implementations

impl Clone for Detection[src]

impl Copy for Detection[src]

impl Debug for Detection[src]

impl Eq for Detection[src]

impl PartialEq<Detection> for Detection[src]

impl StructuralEq for Detection[src]

impl StructuralPartialEq for Detection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,