Enum winter_crypto::RandomCoinError
source · pub enum RandomCoinError {
FailedToDrawFieldElement(usize),
FailedToDrawIntegers(usize, usize, usize),
}Expand description
Defines errors which can occur when drawing values from a random coin.
Variants§
FailedToDrawFieldElement(usize)
A valid element could not be drawn from the field after the specified number of tries.
FailedToDrawIntegers(usize, usize, usize)
The required number of integer values could not be drawn from the specified domain after the specified number of tries.
Trait Implementations§
source§impl Clone for RandomCoinError
impl Clone for RandomCoinError
source§fn clone(&self) -> RandomCoinError
fn clone(&self) -> RandomCoinError
Returns a copy 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 moresource§impl Debug for RandomCoinError
impl Debug for RandomCoinError
source§impl Display for RandomCoinError
impl Display for RandomCoinError
source§impl PartialEq<RandomCoinError> for RandomCoinError
impl PartialEq<RandomCoinError> for RandomCoinError
source§fn eq(&self, other: &RandomCoinError) -> bool
fn eq(&self, other: &RandomCoinError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.