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]
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§
Source§impl Ord for Language
impl Ord for Language
Source§impl PartialOrd for Language
impl PartialOrd for Language
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 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