pub struct CommonRandomness { /* private fields */ }Implementations§
Source§impl CommonRandomness
impl CommonRandomness
Sourcepub fn random_zero_bool(&mut self) -> bool
pub fn random_zero_bool(&mut self) -> bool
Implementation of the Protocol 2.3.2. RandomZero()
Sourcepub fn random_bit(&mut self) -> [bool; 2]
pub fn random_bit(&mut self) -> [bool; 2]
Implementation of the Protocol 2.3.3. RandomBit()
Sourcepub fn random_zero_byte(&mut self) -> u8
pub fn random_zero_byte(&mut self) -> u8
RandomZeroByte()
RandomByte()
Trait Implementations§
Source§impl Clone for CommonRandomness
impl Clone for CommonRandomness
Source§fn clone(&self) -> CommonRandomness
fn clone(&self) -> CommonRandomness
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommonRandomness
impl RefUnwindSafe for CommonRandomness
impl Send for CommonRandomness
impl Sync for CommonRandomness
impl Unpin for CommonRandomness
impl UnwindSafe for CommonRandomness
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