pub enum PolynomialDivError {
ZeroDivisor,
GFError(GFError),
}Expand description
Errors of polynomial division and remainder.
Variants§
ZeroDivisor
The divisor was the zero polynomial.
GFError(GFError)
Propagated from GF(256) arithmetic.
Trait Implementations§
Source§impl Clone for PolynomialDivError
impl Clone for PolynomialDivError
Source§fn clone(&self) -> PolynomialDivError
fn clone(&self) -> PolynomialDivError
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 PolynomialDivError
Source§impl Debug for PolynomialDivError
impl Debug for PolynomialDivError
Source§impl Display for PolynomialDivError
impl Display for PolynomialDivError
impl Eq for PolynomialDivError
Source§impl Error for PolynomialDivError
impl Error for PolynomialDivError
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<GFError> for PolynomialDivError
impl From<GFError> for PolynomialDivError
Source§impl From<PolynomialDivError> for EuclideanError
impl From<PolynomialDivError> for EuclideanError
Source§fn from(source: PolynomialDivError) -> Self
fn from(source: PolynomialDivError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialDivError> for RSGenerateParityError
impl From<PolynomialDivError> for RSGenerateParityError
Source§fn from(source: PolynomialDivError) -> Self
fn from(source: PolynomialDivError) -> Self
Converts to this type from the input type.
Source§impl Hash for PolynomialDivError
impl Hash for PolynomialDivError
Source§impl Ord for PolynomialDivError
impl Ord for PolynomialDivError
Source§fn cmp(&self, other: &PolynomialDivError) -> Ordering
fn cmp(&self, other: &PolynomialDivError) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PolynomialDivError
impl PartialEq for PolynomialDivError
Source§impl PartialOrd for PolynomialDivError
impl PartialOrd for PolynomialDivError
impl StructuralPartialEq for PolynomialDivError
Auto Trait Implementations§
impl Freeze for PolynomialDivError
impl RefUnwindSafe for PolynomialDivError
impl Send for PolynomialDivError
impl Sync for PolynomialDivError
impl Unpin for PolynomialDivError
impl UnsafeUnpin for PolynomialDivError
impl UnwindSafe for PolynomialDivError
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