pub struct D {
pub d: u64,
/* private fields */
}Expand description
Wrapper around the parameter “d” used for domination_free_function
Fields§
§d: u64Implementations§
Source§impl D
impl D
Sourcepub fn new(d: u64) -> Self
pub fn new(d: u64) -> Self
Wraps a value for d.
§Panics
Panics if d is not of the form 2^(2^x) - 1.
Consider using D::try_from().
Sourcepub fn bits_to_combine(&self) -> usize
pub fn bits_to_combine(&self) -> usize
The number of bits that are combined into one integer value
Sourcepub fn signature_and_key_size(&self) -> usize
pub fn signature_and_key_size(&self) -> usize
Size of the resulting Winternitz signature / key
Trait Implementations§
Auto Trait Implementations§
impl Freeze for D
impl RefUnwindSafe for D
impl Send for D
impl Sync for D
impl Unpin for D
impl UnwindSafe for D
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