pub struct WordSet {
pub bits11_set: Vec<Bits11>,
}Fields§
§bits11_set: Vec<Bits11>Implementations§
Source§impl WordSet
impl WordSet
pub fn from_entropy(entropy: &[u8]) -> Result<Self, ErrorMnemonic>
pub fn new() -> Self
pub fn add_word<L: AsWordList>( &mut self, word: &str, wordlist: &L, ) -> Result<(), ErrorMnemonic>
pub fn is_finalizable(&self) -> bool
pub fn to_entropy(&self) -> Result<Vec<u8>, ErrorMnemonic>
pub fn to_phrase<L: AsWordList>( &self, wordlist: &L, ) -> Result<String, ErrorMnemonic>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WordSet
impl RefUnwindSafe for WordSet
impl Send for WordSet
impl Sync for WordSet
impl Unpin for WordSet
impl UnwindSafe for WordSet
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