pub enum SmoothingError {
WindowMustBePositive {
window: usize,
},
WindowMustBeOdd {
window: usize,
},
}Expand description
Errors emitted when smoothing a signal.
Variants§
WindowMustBePositive
The moving average window must be positive.
WindowMustBeOdd
The moving average window must be odd so the average is centred.
Trait Implementations§
Source§impl Clone for SmoothingError
impl Clone for SmoothingError
Source§fn clone(&self) -> SmoothingError
fn clone(&self) -> SmoothingError
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 SmoothingError
Source§impl Debug for SmoothingError
impl Debug for SmoothingError
Source§impl Display for SmoothingError
impl Display for SmoothingError
impl Eq for SmoothingError
Source§impl Error for SmoothingError
impl Error for SmoothingError
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 SmoothingError
impl PartialEq for SmoothingError
impl StructuralPartialEq for SmoothingError
Auto Trait Implementations§
impl Freeze for SmoothingError
impl RefUnwindSafe for SmoothingError
impl Send for SmoothingError
impl Sync for SmoothingError
impl Unpin for SmoothingError
impl UnsafeUnpin for SmoothingError
impl UnwindSafe for SmoothingError
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