pub enum SubcarrierError {
ZeroCount {
count: usize,
},
InputShapeMismatch {
expected_sc: usize,
actual_sc: usize,
shape: Vec<usize>,
},
MethodNotImplemented {
method: String,
},
NopInterpolation {
count: usize,
},
NumericalError(String),
}Expand description
Errors produced by the subcarrier resampling / interpolation functions.
Variants§
ZeroCount
The source or destination count is zero.
InputShapeMismatch
The array’s last dimension does not match the declared source count.
Fields
MethodNotImplemented
The requested interpolation method is not yet implemented.
NopInterpolation
src_n == dst_n — no resampling needed.
NumericalError(String)
A numerical error during interpolation.
Implementations§
Source§impl SubcarrierError
impl SubcarrierError
Sourcepub fn numerical<S: Into<String>>(msg: S) -> Self
pub fn numerical<S: Into<String>>(msg: S) -> Self
Construct a SubcarrierError::NumericalError.
Trait Implementations§
Source§impl Debug for SubcarrierError
impl Debug for SubcarrierError
Source§impl Display for SubcarrierError
impl Display for SubcarrierError
Source§impl Error for SubcarrierError
impl Error for SubcarrierError
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()
Auto Trait Implementations§
impl Freeze for SubcarrierError
impl RefUnwindSafe for SubcarrierError
impl Send for SubcarrierError
impl Sync for SubcarrierError
impl Unpin for SubcarrierError
impl UnsafeUnpin for SubcarrierError
impl UnwindSafe for SubcarrierError
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