pub struct Mnemonic(/* private fields */);
Implementations§
Source§impl Mnemonic
impl Mnemonic
Sourcepub fn to_seed(&self, pd_passphrase: Option<&str>) -> Seed
pub fn to_seed(&self, pd_passphrase: Option<&str>) -> Seed
create a seed from mnemonic with optional passphrase for plausible deniability see BIP39
pub fn iter(&self) -> impl Iterator<Item = &str>
pub fn from_str(s: &str) -> Result<Mnemonic, Error>
pub fn new_random(entropy: MasterKeyEntropy) -> Result<Mnemonic, Error>
pub fn extend(&self) -> Result<Mnemonic, Error>
Trait Implementations§
impl Eq for Mnemonic
impl StructuralPartialEq for Mnemonic
Auto Trait Implementations§
impl Freeze for Mnemonic
impl RefUnwindSafe for Mnemonic
impl Send for Mnemonic
impl Sync for Mnemonic
impl Unpin for Mnemonic
impl UnwindSafe for Mnemonic
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