pub enum EuclideanError {
CapabilityTooHigh {
t: u8,
},
PolynomialDiv(PolynomialDivError),
PolynomialMul(PolynomialMulError),
}Expand description
Errors returned by euclidean.
Variants§
CapabilityTooHigh
The error-correction capability t requires the polynomial x^(2t),
whose degree exceeds Polynomial::MAX_DEGREE.
PolynomialDiv(PolynomialDivError)
Propagated from polynomial division.
PolynomialMul(PolynomialMulError)
Propagated from polynomial multiplication.
Trait Implementations§
Source§impl Clone for EuclideanError
impl Clone for EuclideanError
Source§fn clone(&self) -> EuclideanError
fn clone(&self) -> EuclideanError
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 EuclideanError
Source§impl Debug for EuclideanError
impl Debug for EuclideanError
Source§impl Display for EuclideanError
impl Display for EuclideanError
impl Eq for EuclideanError
Source§impl Error for EuclideanError
impl Error for EuclideanError
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<EuclideanError> for RSComputeErrorsError
impl From<EuclideanError> for RSComputeErrorsError
Source§fn from(source: EuclideanError) -> Self
fn from(source: EuclideanError) -> Self
Converts to this type from the input type.
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<PolynomialMulError> for EuclideanError
impl From<PolynomialMulError> for EuclideanError
Source§fn from(source: PolynomialMulError) -> Self
fn from(source: PolynomialMulError) -> Self
Converts to this type from the input type.
Source§impl Hash for EuclideanError
impl Hash for EuclideanError
Source§impl Ord for EuclideanError
impl Ord for EuclideanError
Source§fn cmp(&self, other: &EuclideanError) -> Ordering
fn cmp(&self, other: &EuclideanError) -> 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 EuclideanError
impl PartialEq for EuclideanError
Source§impl PartialOrd for EuclideanError
impl PartialOrd for EuclideanError
impl StructuralPartialEq for EuclideanError
Auto Trait Implementations§
impl Freeze for EuclideanError
impl RefUnwindSafe for EuclideanError
impl Send for EuclideanError
impl Sync for EuclideanError
impl Unpin for EuclideanError
impl UnsafeUnpin for EuclideanError
impl UnwindSafe for EuclideanError
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