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

Methods

impl Language
[src]

[src]

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();

[src]

Get the word list for this language

[src]

Get a HashMap that allows word -> index lookups in the word list

The index of an individual word in the word list is used as the binary value of that word when the phrase is turned into a Seed.

Trait Implementations

impl Debug for Language
[src]

[src]

Formats the value using the given formatter.

impl Clone for Language
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Language
[src]

impl Default for Language
[src]

[src]

Returns the "default value" for a type. Read more