#[non_exhaustive]pub enum Language {
Arabic,
Bengali,
English,
Esperanto,
Spanish,
French,
Hindi,
Indonesian,
Portuguese,
Urdu,
Chinese,
Other(String),
}Expand description
A language (based on ISO 639-1).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Arabic
Arabic (“ar” in ISO 639-1)
Bengali
Bengali (“bn” in ISO 639-1)
English
English (“en” in ISO 639-1)
Esperanto
Esperanto (“eo” in ISO 639-1)
Spanish
Spanish (“es” in ISO 639-1)
French
French (“fr” in ISO 639-1)
Hindi
Hindi (“hi” in ISO 639-1)
Indonesian
Indonesian (“id” in ISO 639-1)
Portuguese
Portuguese (“pt” in ISO 639-1)
Urdu
Urdu (“ur” in ISO 639-1)
Chinese
Chinese (“zh” in ISO 639-1)
Other(String)
Implementations§
Trait Implementations§
impl Eq for Language
Source§impl Ord for Language
impl Ord for Language
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Language
impl PartialOrd for Language
impl StructuralPartialEq for Language
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnsafeUnpin 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