pub enum Language {
Show 75 variants
Afrikaans,
Albanian,
Arabic,
Armenian,
Azerbaijani,
Basque,
Belarusian,
Bengali,
Bokmal,
Bosnian,
Bulgarian,
Catalan,
Chinese,
Croatian,
Czech,
Danish,
Dutch,
English,
Esperanto,
Estonian,
Finnish,
French,
Ganda,
Georgian,
German,
Greek,
Gujarati,
Hebrew,
Hindi,
Hungarian,
Icelandic,
Indonesian,
Irish,
Italian,
Japanese,
Kazakh,
Korean,
Latin,
Latvian,
Lithuanian,
Macedonian,
Malay,
Maori,
Marathi,
Mongolian,
Nynorsk,
Persian,
Polish,
Portuguese,
Punjabi,
Romanian,
Russian,
Serbian,
Shona,
Slovak,
Slovene,
Somali,
Sotho,
Spanish,
Swahili,
Swedish,
Tagalog,
Tamil,
Telugu,
Thai,
Tsonga,
Tswana,
Turkish,
Ukrainian,
Urdu,
Vietnamese,
Welsh,
Xhosa,
Yoruba,
Zulu,
}
Expand description
This enum specifies the so far 75 supported languages which can be detected by Lingua.
Variants
Afrikaans
Albanian
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bengali
Bokmal
Bosnian
Bulgarian
Catalan
Chinese
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Finnish
French
Ganda
Georgian
German
Greek
Gujarati
Hebrew
Hindi
Hungarian
Icelandic
Indonesian
Irish
Italian
Japanese
Kazakh
Korean
Latin
Latvian
Lithuanian
Macedonian
Malay
Maori
Marathi
Mongolian
Nynorsk
Persian
Polish
Portuguese
Punjabi
Romanian
Russian
Serbian
Shona
Slovak
Slovene
Somali
Sotho
Spanish
Swahili
Swedish
Tagalog
Tamil
Telugu
Thai
Tsonga
Tswana
Turkish
Ukrainian
Urdu
Vietnamese
Welsh
Xhosa
Yoruba
Zulu
Implementations
sourceimpl Language
impl Language
pub fn all() -> HashSet<Language>
pub fn all_spoken_ones() -> HashSet<Language>
pub fn all_with_arabic_script() -> HashSet<Language>
pub fn all_with_cyrillic_script() -> HashSet<Language>
pub fn all_with_devanagari_script() -> HashSet<Language>
pub fn all_with_latin_script() -> HashSet<Language>
pub fn from_iso_code_639_1(iso_code: &IsoCode639_1) -> Language
pub fn from_iso_code_639_3(iso_code: &IsoCode639_3) -> Language
pub fn iso_code_639_1(&self) -> IsoCode639_1
pub fn iso_code_639_3(&self) -> IsoCode639_3
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Language
impl<'de> Deserialize<'de> for Language
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for Language
impl Ord for Language
sourceimpl PartialOrd<Language> for Language
impl PartialOrd<Language> for Language
sourcefn partial_cmp(&self, other: &Language) -> Option<Ordering>
fn partial_cmp(&self, other: &Language) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Language
impl StructuralEq for Language
impl StructuralPartialEq for Language
Auto Trait Implementations
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnwindSafe for Language
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more