#[non_exhaustive]pub enum Error {
Show 15 variants
Music21Object(String),
Chord(String),
Pitch(String),
Microtone(String),
Accidental(String),
ChordTables(String),
Interval(String),
StepName(String),
PitchClass(String),
PitchClassString(String),
Ordinal(String),
Polyrhythm(String),
TuningSystem(String),
Midi(String),
Analysis(String),
}Expand description
Error variants produced by the crate’s theory helpers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Music21Object(String)
Error associated with a generic music21-style object.
Chord(String)
Error associated with chord construction or analysis.
Pitch(String)
Error associated with pitch construction, spelling or conversion.
Microtone(String)
Error associated with microtone construction or conversion.
Accidental(String)
Error associated with accidental parsing or conversion.
ChordTables(String)
Error associated with generated chord-table lookup data.
Interval(String)
Error associated with interval construction or conversion.
StepName(String)
Error associated with step-name parsing or conversion.
PitchClass(String)
Error associated with numeric pitch-class parsing.
PitchClassString(String)
Error associated with pitch-class string parsing.
Ordinal(String)
Error associated with ordinal-name parsing.
Polyrhythm(String)
Error associated with polyrhythm construction or timing.
TuningSystem(String)
Error associated with tuning-system parsing or lookup.
Midi(String)
Error associated with MIDI import or export.
Analysis(String)
Error associated with analysis helpers.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Infallible> for Error
impl From<Infallible> for Error
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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
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>
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>
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