pub enum Bip39Language {
English,
ChineseSimplified,
ChineseTraditional,
Czech,
French,
Italian,
Japanese,
Korean,
Portuguese,
Spanish,
}Expand description
The language of a Bip39 mnemonic phrase. English is the default language.
The choice of language for a mnemonic phrase not only determines the words
used, but also has an impact on the binary value of each word when the
Bip39Mnemonic is converted into a Seed.
English is the only officially supported language, the rest are provided for convenience.
The wordlists for each language are taken from the BIP39 repo: https://github.com/bitcoin/bips/tree/master/bip-0039
Variants§
English
English, this is the only officially supported language
ChineseSimplified
Chinese Simplified
ChineseTraditional
Chinese Traditional
Czech
Czech
French
French
Italian
Italian
Japanese
Japanese
Korean
Korean
Portuguese
Portuguese
Spanish
Spanish
Trait Implementations§
Source§impl Clone for Bip39Language
impl Clone for Bip39Language
Source§fn clone(&self) -> Bip39Language
fn clone(&self) -> Bip39Language
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Bip39Language
impl Debug for Bip39Language
Source§impl Default for Bip39Language
impl Default for Bip39Language
Source§fn default() -> Bip39Language
fn default() -> Bip39Language
Returns the default language, English.
Source§impl FromStr for Bip39Language
impl FromStr for Bip39Language
Source§impl Language for Bip39Language
impl Language for Bip39Language
Source§fn new() -> Bip39Language
fn new() -> Bip39Language
Returns a new Language with default language set.
type Language = Bip39Language
Source§impl PartialEq for Bip39Language
impl PartialEq for Bip39Language
Source§impl Sequence for Bip39Language
impl Sequence for Bip39Language
Source§const CARDINALITY: usize = 10usize
const CARDINALITY: usize = 10usize
Number of values of type
Self. Read moreSource§fn next(&self) -> Option<Bip39Language>
fn next(&self) -> Option<Bip39Language>
Source§fn previous(&self) -> Option<Bip39Language>
fn previous(&self) -> Option<Bip39Language>
impl Copy for Bip39Language
impl Eq for Bip39Language
impl StructuralPartialEq for Bip39Language
Auto Trait Implementations§
impl Freeze for Bip39Language
impl RefUnwindSafe for Bip39Language
impl Send for Bip39Language
impl Sync for Bip39Language
impl Unpin for Bip39Language
impl UnwindSafe for Bip39Language
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more