Enum lambdaworks_math::field::errors::FieldError
source · pub enum FieldError {
DivisionByZero,
RootOfUnityError(u64),
InvZeroError,
}
Variants§
DivisionByZero
RootOfUnityError(u64)
Returns order of the calculated root of unity
InvZeroError
Can’t calculate inverse of zero
Trait Implementations§
source§impl Debug for FieldError
impl Debug for FieldError
source§impl From<FieldError> for FFTError
impl From<FieldError> for FFTError
source§fn from(error: FieldError) -> Self
fn from(error: FieldError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FieldError
impl RefUnwindSafe for FieldError
impl Send for FieldError
impl Sync for FieldError
impl Unpin for FieldError
impl UnwindSafe for FieldError
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> 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