Trait ethers::signers::coins_bip39::wordlist::Wordlist [−]
pub trait Wordlist {
const WORDLIST: &'static str;
fn get(index: usize) -> Result<String, WordlistError> { ... }
fn get_index(word: &str) -> Result<usize, WordlistError> { ... }
fn get_all() -> Vec<&'static str, Global>ⓘ { ... }
}
Associated Constants
Provided methods
fn get(index: usize) -> Result<String, WordlistError>
fn get(index: usize) -> Result<String, WordlistError>
Returns the word of a given index from the word list.
fn get_index(word: &str) -> Result<usize, WordlistError>
fn get_index(word: &str) -> Result<usize, WordlistError>
Returns the index of a given word from the word list.