pub enum ParseError {
MissingTempoSpecifier,
Number,
Dot,
Equal,
NothingToRepeat,
BarRepeat,
UnterminatedBar,
}
Expand description
Errors that occur when parsing the tokens and creating score
Variants§
MissingTempoSpecifier
Occurs when specifying a tempo without the numbers per minute.
For example: q =
Number
Occurs when a number is used outside of the context of ratios or tempo specifications
Dot
Occurs when a dot is found outside of the context of extending ratio duration
Equal
Occurs when an equal character is found outside the context of tempo specification
NothingToRepeat
Occurs when a repeat is specified but there is nothing to repeat
BarRepeat
Occurs when a bar repeat occurs anywhere else but after a barline
UnterminatedBar
Occurs when the last bar has no closing barline
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
1.0.0 · 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 ParseError
impl Debug for ParseError
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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