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 Error for RandomCoinError
impl Error for RandomCoinError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for RandomCoinError
impl PartialEq for RandomCoinError
impl Eq for RandomCoinError
impl StructuralPartialEq for RandomCoinError
Auto Trait Implementations§
impl Freeze for RandomCoinError
impl RefUnwindSafe for RandomCoinError
impl Send for RandomCoinError
impl Sync for RandomCoinError
impl Unpin for RandomCoinError
impl UnwindSafe for RandomCoinError
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