pub enum SpectralError {
NonPowerOfTwoLength {
len: usize,
},
NonDivisibleInverse {
len: usize,
},
InvalidNormalization(String),
LengthOverflow {
len: usize,
},
ShapeMismatch(String),
LimitExceeded(String),
Overflow,
}Expand description
Errors raised by FWHT, convolution, and Walsh-domain operations.
Variants§
NonPowerOfTwoLength
A transform was given input whose length is not a power of two.
NonDivisibleInverse
An integer inverse with DivideByLength hit a non-divisible coefficient.
InvalidNormalization(String)
A normalization mode is not valid for this element type.
LengthOverflow
A length computation would overflow.
ShapeMismatch(String)
Operand shapes are incompatible for the requested operation.
LimitExceeded(String)
An explicit size limit was exceeded (for example, materializing a view).
Overflow
An exact integer transform overflowed i64 and would lose precision.
Trait Implementations§
Source§impl Clone for SpectralError
impl Clone for SpectralError
Source§fn clone(&self) -> SpectralError
fn clone(&self) -> SpectralError
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 moreSource§impl Debug for SpectralError
impl Debug for SpectralError
Source§impl Display for SpectralError
impl Display for SpectralError
impl Eq for SpectralError
Source§impl Error for SpectralError
impl Error for SpectralError
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 SpectralError
impl PartialEq for SpectralError
impl StructuralPartialEq for SpectralError
Auto Trait Implementations§
impl Freeze for SpectralError
impl RefUnwindSafe for SpectralError
impl Send for SpectralError
impl Sync for SpectralError
impl Unpin for SpectralError
impl UnsafeUnpin for SpectralError
impl UnwindSafe for SpectralError
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