pub struct Mnemonic {
pub inner: Mnemonic,
}Expand description
Wrapper for a bip39::Mnemonic for the implementation of ^ and ^= operators.
Fields§
§inner: MnemonicActual bip39::Mnemonic which is wrapped to be able to implement the XOR operator.
Implementations§
Source§impl Mnemonic
impl Mnemonic
Sourcepub fn from_entropy(entropy: &[u8]) -> Result<Self, Error>
pub fn from_entropy(entropy: &[u8]) -> Result<Self, Error>
Wrapper for the same method as in bip39::Mnemonic.
Trait Implementations§
Source§impl BitXorAssign for Mnemonic
impl BitXorAssign for Mnemonic
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Ord for Mnemonic
impl Ord for Mnemonic
Source§impl PartialOrd for Mnemonic
impl PartialOrd for Mnemonic
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