pub enum TimeDomainError {
InvalidTime(String),
InvalidCropRange(usize, usize, usize),
InvalidLength(String),
Audio(AudioError),
}Expand description
Custom error types for time-domain signal operations.
This enum defines errors specific to manipulating signals in the time domain, including delays, reversals, cropping, padding, and advanced operations like LPC.
Variants§
InvalidTime(String)
Error when a time parameter (e.g., delay, start time) is invalid.
InvalidCropRange(usize, usize, usize)
Error when cropping parameters exceed the signal length.
InvalidLength(String)
Error when the signal length is invalid for the operation.
Audio(AudioError)
Wraps an AudioError from the core module (e.g., for LPC).
Trait Implementations§
Source§impl Debug for TimeDomainError
impl Debug for TimeDomainError
Source§impl Display for TimeDomainError
impl Display for TimeDomainError
Source§impl Error for TimeDomainError
impl Error for TimeDomainError
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 TimeDomainError
impl From<AudioError> for TimeDomainError
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 TimeDomainError
impl !RefUnwindSafe for TimeDomainError
impl Send for TimeDomainError
impl Sync for TimeDomainError
impl Unpin for TimeDomainError
impl !UnwindSafe for TimeDomainError
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