pub enum Poseidon2RoundNumbersError {
InvalidSboxExponent {
exponent: u64,
field_order_minus_one: u64,
},
UnsupportedWidthAndExponent {
field_bits: u32,
width: usize,
exponent: u64,
},
UnsupportedFieldSize {
field_bits: u32,
},
}Expand description
Reasons the precomputed 128-bit Poseidon2 round table cannot serve a parameter set.
Variants§
InvalidSboxExponent
The S-box exponent does not define a permutation of the field.
Fields
UnsupportedWidthAndExponent
No precomputed round count exists for this width and exponent.
Fields
UnsupportedFieldSize
The table has not been computed for this field size.
Trait Implementations§
Source§impl Clone for Poseidon2RoundNumbersError
impl Clone for Poseidon2RoundNumbersError
impl Copy for Poseidon2RoundNumbersError
Source§impl Debug for Poseidon2RoundNumbersError
impl Debug for Poseidon2RoundNumbersError
Source§impl Display for Poseidon2RoundNumbersError
impl Display for Poseidon2RoundNumbersError
impl Eq for Poseidon2RoundNumbersError
Source§impl Error for Poseidon2RoundNumbersError
impl Error for Poseidon2RoundNumbersError
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()
impl StructuralPartialEq for Poseidon2RoundNumbersError
Auto Trait Implementations§
impl Freeze for Poseidon2RoundNumbersError
impl RefUnwindSafe for Poseidon2RoundNumbersError
impl Send for Poseidon2RoundNumbersError
impl Sync for Poseidon2RoundNumbersError
impl Unpin for Poseidon2RoundNumbersError
impl UnsafeUnpin for Poseidon2RoundNumbersError
impl UnwindSafe for Poseidon2RoundNumbersError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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