pub enum BinaryPolynomialError {
MultiplierDegreeGreaterOrEqualToModulusError,
NotSquareFreePolynomialError,
ParsingPolynomialError,
}Expand description
Error type for binary polynomial operations
Variants§
MultiplierDegreeGreaterOrEqualToModulusError
Error when the degree of the polynomial is greater than the modulus on polynomial modular multiplication
NotSquareFreePolynomialError
Error when the given polynomial is not square free, ie it can be expressed as A*A*B, with A, B polynomials
ParsingPolynomialError
Error when parsing polynomial from string
Trait Implementations§
Source§impl Clone for BinaryPolynomialError
impl Clone for BinaryPolynomialError
Source§fn clone(&self) -> BinaryPolynomialError
fn clone(&self) -> BinaryPolynomialError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BinaryPolynomialError
Source§impl Debug for BinaryPolynomialError
impl Debug for BinaryPolynomialError
Source§impl Display for BinaryPolynomialError
impl Display for BinaryPolynomialError
impl Eq for BinaryPolynomialError
Source§impl Error for BinaryPolynomialError
impl Error for BinaryPolynomialError
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 BinaryPolynomialError
impl PartialEq for BinaryPolynomialError
Source§fn eq(&self, other: &BinaryPolynomialError) -> bool
fn eq(&self, other: &BinaryPolynomialError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BinaryPolynomialError
Auto Trait Implementations§
impl Freeze for BinaryPolynomialError
impl RefUnwindSafe for BinaryPolynomialError
impl Send for BinaryPolynomialError
impl Sync for BinaryPolynomialError
impl Unpin for BinaryPolynomialError
impl UnsafeUnpin for BinaryPolynomialError
impl UnwindSafe for BinaryPolynomialError
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