[−][src]Enum whatlang::Lang
Represents a language following ISO 639-3 standard.
Variants
Aka
Akan (Akan)
Amh
አማርኛ (Amharic)
Arb
العربية (Arabic)
Azj
Azərbaycanca (Azerbaijani)
Bel
Беларуская (Belarusian)
Ben
বাংলা (Bengali)
Bho
भोजपुरी (Bhojpuri)
Bul
Български (Bulgarian)
Ceb
Cebuano (Cebuano)
Ces
Čeština (Czech)
Cmn
官话 (Mandarin)
Dan
Dansk (Danish)
Deu
Deutsch (German)
Ell
Ελληνικά (Greek)
Eng
English (English)
Epo
Esperanto (Esperanto)
Est
Eesti (Estonian)
Fin
Suomi (Finnish)
Fra
Français (French)
Guj
ગુજરાતી (Gujarati)
Hat
Kreyòl ayisyen (Haitian Creole)
Hau
Hausa (Hausa)
Heb
עברית (Hebrew)
Hin
हिन्दी (Hindi)
Hrv
Hrvatski (Croatian)
Hun
Magyar (Hungarian)
Ibo
Igbo (Igbo)
Ilo
Ilokano (Ilocano)
Ind
Bahasa Indonesia (Indonesian)
Ita
Italiano (Italian)
Jav
Basa Jawa (Javanese)
Jpn
日本語 (Japanese)
Kan
ಕನ್ನಡ (Kannada)
Kat
ქართული (Georgian)
Khm
ភាសាខ្មែរ (Khmer)
Kin
Kinyarwanda (Kinyarwanda)
Kor
한국어 (Korean)
Kur
Kurdî (Kurdish)
Lav
Latviešu (Latvian)
Lit
Lietuvių (Lithuanian)
Mai
मैथिली (Maithili)
Mal
മലയാളം (Malayalam)
Mar
मराठी (Marathi)
Mkd
Македонски (Macedonian)
Mlg
Malagasy (Malagasy)
Mya
မြန်မာစာ (Burmese)
Nep
नेपाली (Nepali)
Nld
Nederlands (Dutch)
Nno
Nynorsk (Nynorsk)
Nob
Bokmål (Bokmal)
Nya
Chichewa (Chewa)
Ori
ଓଡ଼ିଆ (Oriya)
Orm
Oromoo (Oromo)
Pan
ਪੰਜਾਬੀ (Punjabi)
Pes
فارسی (Persian)
Pol
Polski (Polish)
Por
Português (Portuguese)
Ron
Română (Romanian)
Run
Ikirundi (Rundi)
Rus
Русский (Russian)
Sin
සිංහල (Sinhalese)
Skr
سرائیکی (Saraiki)
Slv
Slovenščina (Slovene)
Sna
ChiShona (Shona)
Som
Soomaaliga (Somali)
Spa
Español (Spanish)
Srp
Српски (Serbian)
Swe
Svenska (Swedish)
Tam
தமிழ் (Tamil)
Tel
తెలుగు (Telugu)
Tgl
Tagalog (Tagalog)
Tha
ภาษาไทย (Thai)
Tir
ትግርኛ (Tigrinya)
Tuk
Türkmençe (Turkmen)
Tur
Türkçe (Turkish)
Uig
ئۇيغۇرچە (Uyghur)
Ukr
Українська (Ukrainian)
Urd
اُردُو (Urdu)
Uzb
Oʻzbekcha (Uzbek)
Vie
Tiếng Việt (Vietnamese)
Ydd
ייִדיש (Yiddish)
Yor
Yorùbá (Yoruba)
Zul
IsiZulu (Zulu)
Methods
impl Lang
[src]
impl Lang
pub fn from_code<S: Into<String>>(code: S) -> Option<Lang>
[src]
pub fn from_code<S: Into<String>>(code: S) -> Option<Lang>
Get enum by ISO 639-3 code as a string.
Example
use whatlang::Lang; assert_eq!(Lang::from_code("ukr"), Some(Lang::Ukr));
pub fn code(&self) -> &str
[src]
pub fn code(&self) -> &str
Convert enum into ISO 639-3 code as a string.
Example
use whatlang::Lang; assert_eq!(Lang::Ukr.code(), "ukr");
pub fn name(self) -> &'static str
[src]
pub fn name(self) -> &'static str
Get a language name in the language itself.
Example
use whatlang::Lang; assert_eq!(Lang::Ukr.name(), "Українська");
pub fn eng_name(self) -> &'static str
[src]
pub fn eng_name(self) -> &'static str
Get a human readable name of the language in English.
Example
use whatlang::Lang; assert_eq!(Lang::Deu.eng_name(), "German");
Trait Implementations
impl PartialEq<Lang> for Lang
[src]
impl PartialEq<Lang> for Lang
fn eq(&self, other: &Lang) -> bool
[src]
fn eq(&self, other: &Lang) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Clone for Lang
[src]
impl Clone for Lang
fn clone(&self) -> Lang
[src]
fn clone(&self) -> Lang
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for Lang
[src]
impl Copy for Lang
impl Eq for Lang
[src]
impl Eq for Lang
impl Debug for Lang
[src]
impl Debug for Lang
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Lang
[src]
impl Display for Lang
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for Lang
[src]
impl Hash for Lang
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more