pub enum ConsonanceError {
InvalidSpan {
start: Ratio<i64>,
end: Ratio<i64>,
},
UnknownModel {
domain: &'static str,
model: String,
},
MidiRequiresRealization,
ScoreConversion(String),
Identity(String),
Acoustic(String),
}Expand description
Error raised by exact window construction or metric evaluation.
Variants§
InvalidSpan
A half-open span was negative or reversed.
UnknownModel
A requested model was not installed.
MidiRequiresRealization
Raw MIDI score bodies require the realization-aware entry point.
ScoreConversion(String)
Existing exact score conversion rejected the source.
Identity(String)
An identity derived from a source was invalid.
Acoustic(String)
Acoustic analysis rejected the realized tones.
Trait Implementations§
Source§impl Clone for ConsonanceError
impl Clone for ConsonanceError
Source§fn clone(&self) -> ConsonanceError
fn clone(&self) -> ConsonanceError
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 ConsonanceError
impl Debug for ConsonanceError
Source§impl Display for ConsonanceError
impl Display for ConsonanceError
Source§impl Error for ConsonanceError
impl Error for ConsonanceError
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<ConsonanceError> for CompletionError
impl From<ConsonanceError> for CompletionError
Source§fn from(source: ConsonanceError) -> CompletionError
fn from(source: ConsonanceError) -> CompletionError
Converts to this type from the input type.
Source§impl PartialEq for ConsonanceError
impl PartialEq for ConsonanceError
impl StructuralPartialEq for ConsonanceError
Auto Trait Implementations§
impl Freeze for ConsonanceError
impl RefUnwindSafe for ConsonanceError
impl Send for ConsonanceError
impl Sync for ConsonanceError
impl Unpin for ConsonanceError
impl UnsafeUnpin for ConsonanceError
impl UnwindSafe for ConsonanceError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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