pub struct GameMnemonic<O, const W: u8> { /* private fields */ }Expand description
Sensitive BIP39 mnemonic wrapper. O is a zero-sized origin marker
(e.g. kdk_entropy::Coin, kdk_entropy::Dice<F>,
kdk_entropy::Deck<C>) and W is the word count
(12 / 15 / 18 / 21 / 24).
Implementations§
Source§impl<O, const W: u8> GameMnemonic<O, W>
impl<O, const W: u8> GameMnemonic<O, W>
Sourcepub const fn word_count(&self) -> usize
pub const fn word_count(&self) -> usize
Word count of this mnemonic — returned from the const generic
W without touching the inner secret. Use this instead of
expose_secret().word_count() whenever you just need the
metadata.
Trait Implementations§
Source§impl<O, const W: u8> Debug for GameMnemonic<O, W>
impl<O, const W: u8> Debug for GameMnemonic<O, W>
Source§impl<O, const W: u8> Display for GameMnemonic<O, W>
impl<O, const W: u8> Display for GameMnemonic<O, W>
Auto Trait Implementations§
impl<O, const W: u8> Freeze for GameMnemonic<O, W>
impl<O, const W: u8> RefUnwindSafe for GameMnemonic<O, W>where
O: RefUnwindSafe,
impl<O, const W: u8> Send for GameMnemonic<O, W>where
O: Send,
impl<O, const W: u8> Sync for GameMnemonic<O, W>where
O: Sync,
impl<O, const W: u8> Unpin for GameMnemonic<O, W>where
O: Unpin,
impl<O, const W: u8> UnsafeUnpin for GameMnemonic<O, W>
impl<O, const W: u8> UnwindSafe for GameMnemonic<O, W>where
O: UnwindSafe,
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