pub enum SignalError {
Show 20 variants
InvalidLength {
len: usize,
reason: &'static str,
},
InvalidPolicy {
policy: &'static str,
reason: &'static str,
},
ZeroStride,
StrideOverflow,
LengthMismatch {
expected: usize,
actual: usize,
},
InvalidTensorView {
reason: &'static str,
},
AxisOutOfBounds {
axis: usize,
rank: usize,
},
DuplicateAxis {
axis: usize,
},
ScratchLimit {
required: usize,
maximum: usize,
},
WorkLimit {
required: u64,
maximum: u64,
},
SingularModel {
order: usize,
},
UnstableModel {
order: usize,
},
SingularSystem {
operation: &'static str,
step: usize,
pivot_magnitude: f64,
threshold: f64,
},
DuplicateCoordinate {
index: usize,
value: f64,
},
OutOfDomain {
index: usize,
value: f64,
minimum: f64,
maximum: f64,
},
PredictionLimit {
index: usize,
},
BlockStore {
operation: &'static str,
message: String,
},
InputKind {
expected: &'static str,
actual: &'static str,
},
NonFinite {
index: usize,
component: &'static str,
},
DegenerateNormalization {
normalization: &'static str,
},
}Expand description
Error returned when a transform plan or signal buffer is invalid.
Variants§
InvalidLength
A transform length was zero or too short for its definition.
Fields
InvalidPolicy
A policy combination is contradictory or unsupported.
Fields
ZeroStride
A stride step of zero was requested.
StrideOverflow
Offset/stride arithmetic overflowed usize.
LengthMismatch
The selected logical input length disagrees with the plan.
Fields
InvalidTensorView
A tensor shape or physical layout is not a valid non-overlapping view.
AxisOutOfBounds
A requested transform axis does not exist in the tensor rank.
DuplicateAxis
A transform axis appeared more than once.
ScratchLimit
A bounded transform plan would exceed the caller’s scratch limit.
Fields
WorkLimit
A spectral estimator would exceed its declared deterministic work limit.
Fields
SingularModel
Burg recursion encountered a zero-energy or numerically singular stage.
UnstableModel
An autoregressive reflection coefficient crossed the declared stability margin.
SingularSystem
A numerical system had no pivot above its declared singularity threshold.
Fields
DuplicateCoordinate
A sampled-data input repeated an abscissa under reject policy.
Fields
OutOfDomain
A query lies outside a finite sampled-data domain under reject policy.
Fields
PredictionLimit
Recursive prediction exceeded its declared finite-amplitude bound.
BlockStore
A Table/Dir block-store operation failed or returned invalid data.
Fields
InputKind
A transform received real data where complex data was required, or the reverse.
Fields
NonFinite
A signal contains a NaN or infinity.
Fields
DegenerateNormalization
A requested normalization has a zero or non-finite divisor.
Trait Implementations§
Source§impl Clone for SignalError
impl Clone for SignalError
Source§fn clone(&self) -> SignalError
fn clone(&self) -> SignalError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SignalError
impl Debug for SignalError
Source§impl Display for SignalError
impl Display for SignalError
Source§impl Error for SignalError
impl Error for SignalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for SignalError
impl PartialEq for SignalError
impl StructuralPartialEq for SignalError
Auto Trait Implementations§
impl Freeze for SignalError
impl RefUnwindSafe for SignalError
impl Send for SignalError
impl Sync for SignalError
impl Unpin for SignalError
impl UnsafeUnpin for SignalError
impl UnwindSafe for SignalError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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