pub enum NotationError {
UnsupportedDuration(String),
UnsupportedMusicObject(&'static str),
InvalidKey(String),
UnsupportedSyntax {
diagnostics: Vec<Diagnostic>,
},
Music(MusicError),
}Expand description
Error raised while importing or exporting LilyPond-subset notation.
Variants§
UnsupportedDuration(String)
A duration could not be expressed in the supported note-value set.
UnsupportedMusicObject(&'static str)
A music object kind has no LilyPond-subset rendering.
InvalidKey(String)
A key signature string could not be parsed.
UnsupportedSyntax
The LilyPond source used syntax outside the supported subset.
Fields
§
diagnostics: Vec<Diagnostic>Diagnostics describing the offending syntax.
Music(MusicError)
An error surfaced from the underlying music-core model.
Trait Implementations§
Source§impl Clone for NotationError
impl Clone for NotationError
Source§fn clone(&self) -> NotationError
fn clone(&self) -> NotationError
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 NotationError
impl Debug for NotationError
Source§impl Display for NotationError
impl Display for NotationError
impl Eq for NotationError
Source§impl Error for NotationError
impl Error for NotationError
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<MusicError> for NotationError
impl From<MusicError> for NotationError
Source§fn from(source: MusicError) -> Self
fn from(source: MusicError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NotationError
impl PartialEq for NotationError
Source§fn eq(&self, other: &NotationError) -> bool
fn eq(&self, other: &NotationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotationError
Auto Trait Implementations§
impl Freeze for NotationError
impl RefUnwindSafe for NotationError
impl Send for NotationError
impl Sync for NotationError
impl Unpin for NotationError
impl UnsafeUnpin for NotationError
impl UnwindSafe for NotationError
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