pub enum Language {
English,
ChineseSimplified,
ChineseTraditional,
French,
Italian,
Japanese,
Korean,
Spanish,
}
Expand description
The language determines which words will be used in a mnemonic phrase, but also indirectly
determines the binary value of each word when a Mnemonic
is turned into a Seed
.
These are not of much use right now, and may even be removed from the crate, as there is no official language specified by the standard except English.
Variants
English
ChineseSimplified
ChineseTraditional
French
Italian
Japanese
Korean
Spanish
Implementations
sourceimpl Language
impl Language
sourcepub fn from_language_code(language_code: &str) -> Option<Self>
pub fn from_language_code(language_code: &str) -> Option<Self>
Construct a word list from its language code. Returns None if the language code is not valid or not supported.
Trait Implementations
impl Copy for Language
impl StructuralPartialEq for Language
Auto Trait Implementations
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnwindSafe for Language
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more