Enum miden_core::utils::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
sourceimpl Debug for RandomCoinError
impl Debug for RandomCoinError
sourceimpl Display for RandomCoinError
impl Display for RandomCoinError
sourceimpl PartialEq<RandomCoinError> for RandomCoinError
impl PartialEq<RandomCoinError> for RandomCoinError
sourcefn eq(&self, other: &RandomCoinError) -> bool
fn eq(&self, other: &RandomCoinError) -> bool
impl Eq for RandomCoinError
impl StructuralEq for RandomCoinError
impl StructuralPartialEq for RandomCoinError
Auto Trait Implementations
impl RefUnwindSafe for RandomCoinError
impl Send for RandomCoinError
impl Sync for RandomCoinError
impl Unpin for RandomCoinError
impl UnwindSafe for RandomCoinError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more