pub enum ScalaError {
Empty,
MissingCount,
BadCount(String),
BadPitch(String),
CountMismatch {
expected: usize,
found: usize,
},
}Available on crate feature
alloc only.Expand description
Error returned when a .scl file cannot be parsed.
Variants§
Empty
The file contained no non-comment content.
MissingCount
The note-count line was missing.
BadCount(String)
The note-count line was not a valid non-negative integer.
BadPitch(String)
A pitch line could not be parsed (carries the offending token).
CountMismatch
The number of pitch lines did not match the declared count.
Trait Implementations§
Source§impl Clone for ScalaError
impl Clone for ScalaError
Source§fn clone(&self) -> ScalaError
fn clone(&self) -> ScalaError
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 ScalaError
impl Debug for ScalaError
Source§impl Display for ScalaError
impl Display for ScalaError
impl Eq for ScalaError
Source§impl PartialEq for ScalaError
impl PartialEq for ScalaError
impl StructuralPartialEq for ScalaError
Auto Trait Implementations§
impl Freeze for ScalaError
impl RefUnwindSafe for ScalaError
impl Send for ScalaError
impl Sync for ScalaError
impl Unpin for ScalaError
impl UnsafeUnpin for ScalaError
impl UnwindSafe for ScalaError
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