pub enum ProsodyError {
InsufficientNodes {
got: usize,
need: usize,
},
DecompositionFailed(String),
InvalidParameter(String),
EmptyFeature,
IndexOutOfRange {
index: usize,
len: usize,
},
}Expand description
Errors that can occur during spectral prosody analysis.
Variants§
InsufficientNodes
Not enough nodes to construct a graph.
DecompositionFailed(String)
Eigen-decomposition failed to converge.
InvalidParameter(String)
Invalid parameter value.
EmptyFeature
Empty feature vector.
IndexOutOfRange
Index out of range.
Trait Implementations§
Source§impl Clone for ProsodyError
impl Clone for ProsodyError
Source§fn clone(&self) -> ProsodyError
fn clone(&self) -> ProsodyError
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 moreSource§impl Debug for ProsodyError
impl Debug for ProsodyError
Source§impl Display for ProsodyError
impl Display for ProsodyError
Source§impl Error for ProsodyError
impl Error for ProsodyError
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 ProsodyError
impl RefUnwindSafe for ProsodyError
impl Send for ProsodyError
impl Sync for ProsodyError
impl Unpin for ProsodyError
impl UnsafeUnpin for ProsodyError
impl UnwindSafe for ProsodyError
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