pub enum ParamError {
InvalidTrimParam {
value: String,
location: &'static Location<'static>,
},
AxisDuplicated {
axis: i64,
location: &'static Location<'static>,
},
InvalidFFTNormParam {
value: String,
location: &'static Location<'static>,
},
}Expand description
Parameter-related errors such as invalid function arguments
Variants§
InvalidTrimParam
Error that occurs when trim parameter is invalid
Fields
AxisDuplicated
Error that occurs when the axis is duplicated
InvalidFFTNormParam
Error that occurs when FFT norm parameter is invalid
Implementations§
Source§impl ParamError
impl ParamError
Sourcepub fn check_trim(value: &str) -> Result<(), Self>
pub fn check_trim(value: &str) -> Result<(), Self>
Check if the trim parameter is valid
Trait Implementations§
Source§impl Debug for ParamError
impl Debug for ParamError
Source§impl Display for ParamError
impl Display for ParamError
Source§impl Error for ParamError
impl Error for ParamError
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 From<ParamError> for TensorError
impl From<ParamError> for TensorError
Source§fn from(source: ParamError) -> Self
fn from(source: ParamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParamError
impl RefUnwindSafe for ParamError
impl Send for ParamError
impl Sync for ParamError
impl Unpin for ParamError
impl UnwindSafe for ParamError
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