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§
source§impl Language
impl Language
sourcepub fn all_spoken_ones() -> HashSet<Language>
pub fn all_spoken_ones() -> HashSet<Language>
Returns a set of all supported spoken languages.
sourcepub fn all_with_arabic_script() -> HashSet<Language>
pub fn all_with_arabic_script() -> HashSet<Language>
Returns a set of all languages supporting the Arabic script.
sourcepub fn all_with_cyrillic_script() -> HashSet<Language>
pub fn all_with_cyrillic_script() -> HashSet<Language>
Returns a set of all languages supporting the Cyrillic script.
sourcepub fn all_with_devanagari_script() -> HashSet<Language>
pub fn all_with_devanagari_script() -> HashSet<Language>
Returns a set of all languages supporting the Devanagari script.
sourcepub fn all_with_latin_script() -> HashSet<Language>
pub fn all_with_latin_script() -> HashSet<Language>
Returns a set of all languages supporting the Latin script.
sourcepub fn from_iso_code_639_1(iso_code: &IsoCode639_1) -> Language
pub fn from_iso_code_639_1(iso_code: &IsoCode639_1) -> Language
Returns the language associated with the ISO 639-1 code passed to this method.
sourcepub fn from_iso_code_639_3(iso_code: &IsoCode639_3) -> Language
pub fn from_iso_code_639_3(iso_code: &IsoCode639_3) -> Language
Returns the language associated with the ISO 639-3 code passed to this method.
sourcepub fn iso_code_639_1(&self) -> IsoCode639_1
pub fn iso_code_639_1(&self) -> IsoCode639_1
Returns the ISO 639-1 code of this language.
sourcepub fn iso_code_639_3(&self) -> IsoCode639_3
pub fn iso_code_639_3(&self) -> IsoCode639_3
Returns the ISO 639-3 code of this language.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Language
impl<'de> Deserialize<'de> for Language
source§fn 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
source§impl IntoEnumIterator for Language
impl IntoEnumIterator for Language
source§impl Ord for Language
impl Ord for Language
source§impl PartialEq for Language
impl PartialEq for Language
source§impl PartialOrd for Language
impl PartialOrd for Language
1.0.0 · source§fn 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 moreimpl Copy for Language
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§
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more