pub enum PolynomialContextError {
EmptyVariableName {
variable: usize,
},
DuplicateVariableName {
name: String,
},
Grading(GradingError),
MonomialOrder(MonomialOrderError),
}Expand description
Failure to construct a polynomial-ring context.
Variants§
EmptyVariableName
One variable name was empty.
DuplicateVariableName
Two variables had the same name.
Grading(GradingError)
The grading was invalid or had the wrong arity.
MonomialOrder(MonomialOrderError)
The monomial order was not admissible for the variable context.
Trait Implementations§
Source§impl Clone for PolynomialContextError
impl Clone for PolynomialContextError
Source§fn clone(&self) -> PolynomialContextError
fn clone(&self) -> PolynomialContextError
Returns a duplicate 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 PolynomialContextError
impl Debug for PolynomialContextError
Source§impl Display for PolynomialContextError
impl Display for PolynomialContextError
Source§impl Error for PolynomialContextError
impl Error for PolynomialContextError
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 From<GradingError> for PolynomialContextError
impl From<GradingError> for PolynomialContextError
Source§fn from(value: GradingError) -> Self
fn from(value: GradingError) -> Self
Converts to this type from the input type.
Source§impl From<MonomialOrderError> for PolynomialContextError
impl From<MonomialOrderError> for PolynomialContextError
Source§fn from(value: MonomialOrderError) -> Self
fn from(value: MonomialOrderError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for AffineNormalizationError
impl From<PolynomialContextError> for AffineNormalizationError
Source§fn from(value: PolynomialContextError) -> Self
fn from(value: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for ConstructionAlgebraError
impl From<PolynomialContextError> for ConstructionAlgebraError
Source§fn from(value: PolynomialContextError) -> Self
fn from(value: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for CurveError
impl From<PolynomialContextError> for CurveError
Source§fn from(value: PolynomialContextError) -> Self
fn from(value: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for DecompositionError
impl From<PolynomialContextError> for DecompositionError
Source§fn from(error: PolynomialContextError) -> Self
fn from(error: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for FrobeniusError
impl From<PolynomialContextError> for FrobeniusError
Source§fn from(value: PolynomialContextError) -> Self
fn from(value: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for GeometryError
impl From<PolynomialContextError> for GeometryError
Source§fn from(error: PolynomialContextError) -> Self
fn from(error: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for LocalAlgebraError
impl From<PolynomialContextError> for LocalAlgebraError
Source§fn from(value: PolynomialContextError) -> Self
fn from(value: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for MatroidError
impl From<PolynomialContextError> for MatroidError
Source§fn from(error: PolynomialContextError) -> Self
fn from(error: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for NoetherNormalizationError
impl From<PolynomialContextError> for NoetherNormalizationError
Source§fn from(value: PolynomialContextError) -> Self
fn from(value: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for PointCountError
impl From<PolynomialContextError> for PointCountError
Source§fn from(value: PolynomialContextError) -> Self
fn from(value: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for RationalFunctionError
impl From<PolynomialContextError> for RationalFunctionError
Source§fn from(value: PolynomialContextError) -> Self
fn from(value: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for SchemeError
impl From<PolynomialContextError> for SchemeError
Source§fn from(error: PolynomialContextError) -> Self
fn from(error: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialContextError> for WeightedProjectiveError
impl From<PolynomialContextError> for WeightedProjectiveError
Source§fn from(value: PolynomialContextError) -> Self
fn from(value: PolynomialContextError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PolynomialContextError
impl PartialEq for PolynomialContextError
impl Eq for PolynomialContextError
impl StructuralPartialEq for PolynomialContextError
Auto Trait Implementations§
impl Freeze for PolynomialContextError
impl RefUnwindSafe for PolynomialContextError
impl Send for PolynomialContextError
impl Sync for PolynomialContextError
impl Unpin for PolynomialContextError
impl UnwindSafe for PolynomialContextError
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> 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