pub enum Language {
English,
}Expand description
Language to be used for the mnemonic phrase.
The English language is always available, other languages are enabled using the compilation features.
Variants§
English
The English language.
Implementations§
Source§impl Language
impl Language
Sourcepub const ALL: &'static [Language]
pub const ALL: &'static [Language]
The list of supported languages. Language support is managed by compile features.
Sourcepub fn all() -> &'static [Language]
👎Deprecated since 2.1.0: use constant Language::ALL instead
pub fn all() -> &'static [Language]
use constant Language::ALL instead
The list of supported languages. Language support is managed by compile features.
Sourcepub fn words_by_prefix(self, prefix: &str) -> &[&'static str]
pub fn words_by_prefix(self, prefix: &str) -> &[&'static str]
Get words from the word list that start with the given prefix.
Trait Implementations§
impl Copy for Language
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
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