pub enum Language {
En,
Pl,
}Variants§
Implementations§
Source§impl Language
impl Language
Sourcepub fn label(self) -> &'static str
pub fn label(self) -> &'static str
The endonym, never translated, so a user in the wrong language still recognises theirs.
pub fn index(self) -> usize
pub fn from_index(index: usize) -> Language
Sourcepub fn from_tag(tag: &str) -> Option<Language>
pub fn from_tag(tag: &str) -> Option<Language>
The inverse of tag, for a restarted instance told which language to keep.
fn langid(self) -> u16
fn primary(self) -> u16
Trait Implementations§
impl Copy for Language
impl Eq 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