pub struct EntropyReport {
pub total_bits: f64,
pub is_safe: bool,
}Expand description
Report produced alongside custom-alphabet phrases.
Fields§
§total_bits: f64Total entropy bits encoded: want_words × log2(alphabet.len()).
is_safe: boolTrue iff total_bits >= 128 (the SDK’s custom-mode floor).
Trait Implementations§
Source§impl Clone for EntropyReport
impl Clone for EntropyReport
Source§fn clone(&self) -> EntropyReport
fn clone(&self) -> EntropyReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntropyReport
impl Debug for EntropyReport
Source§impl PartialEq for EntropyReport
impl PartialEq for EntropyReport
impl StructuralPartialEq for EntropyReport
Auto Trait Implementations§
impl Freeze for EntropyReport
impl RefUnwindSafe for EntropyReport
impl Send for EntropyReport
impl Sync for EntropyReport
impl Unpin for EntropyReport
impl UnsafeUnpin for EntropyReport
impl UnwindSafe for EntropyReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more