pub enum Language {
English,
SimplifiedChinese,
TraditionalChinese,
Czech,
French,
Italian,
Japanese,
Korean,
Portuguese,
Spanish,
}
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.
SimplifiedChinese
Available on crate feature
chinese-simplified
only.The Simplified Chinese language.
TraditionalChinese
Available on crate feature
chinese-traditional
only.The Traditional Chinese language.
Czech
Available on crate feature
czech
only.The Czech language.
French
Available on crate feature
french
only.The French language.
Italian
Available on crate feature
italian
only.The Italian language.
Japanese
Available on crate feature
japanese
only.The Japanese language.
Korean
Available on crate feature
korean
only.The Korean language.
Portuguese
Available on crate feature
portuguese
only.The Portuguese language.
Spanish
Available on crate feature
spanish
only.The Spanish 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 DefaultIsZeroes for Language
Available on crate feature
zeroize
only.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)