pub enum SpectralError {
    InvalidParameter(String),
    InvalidSize(String),
    Numerical(String),
    Audio(AudioError),
    TimeDomain(String),
    TimeFrequency(String),
}Expand description
Custom error types for spectral signal processing operations.
This enum defines errors specific to spectral feature extraction and analysis.
Variants§
InvalidParameter(String)
Error when a parameter (e.g., frame length, hop length) is invalid.
InvalidSize(String)
Error when input dimensions or sizes are insufficient or mismatched.
Numerical(String)
Error during numerical computations (e.g., matrix solving, eigenvalue decomposition).
Audio(AudioError)
Wraps an AudioError from the core module (e.g., from time-domain functions).
TimeDomain(String)
A variant for TimeDomainError
TimeFrequency(String)
Wraps a time-frequency processing error (e.g., from STFT or CQT).
Trait Implementations§
Source§impl Debug for SpectralError
 
impl Debug for SpectralError
Source§impl Display for SpectralError
 
impl Display for SpectralError
Source§impl Error for SpectralError
 
impl Error for SpectralError
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<AudioError> for SpectralError
 
impl From<AudioError> for SpectralError
Source§fn from(source: AudioError) -> Self
 
fn from(source: AudioError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SpectralError
impl !RefUnwindSafe for SpectralError
impl Send for SpectralError
impl Sync for SpectralError
impl Unpin 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
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>
Converts 
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>
Converts 
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