Enum bip39::Language
[−]
[src]
pub enum Language { English, }
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
Methods
impl Language
[src]
fn for_locale<S>(locale: S) -> Result<Language, Error> where
S: Into<String>,
[src]
S: Into<String>,
Get the Language
value for a specific locale
Not used much at the moment as the standard specifies english
Example
use bip39::{Language}; let lang = Language::for_locale("en_US.UTF-8").unwrap();
fn get_wordlist(&self) -> &'static Vec<String>
[src]
Get the word list for this language
fn get_wordmap(&self) -> &'static HashMap<String, u16>
[src]
Trait Implementations
impl Debug for Language
[src]
impl Clone for Language
[src]
fn clone(&self) -> Language
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more