pub enum PitchSetError {
InvalidMidiKey(u8),
InvalidPitchClassMask(u16),
InvalidThirdStackEncoding,
InvalidThirdStack,
}Expand description
Error returned when a pitch-set value cannot be constructed, encoded, or decoded.
Variants§
InvalidMidiKey(u8)
A MIDI key outside the valid 0..128 range was supplied.
InvalidPitchClassMask(u16)
A pitch-class mask used bits outside the low twelve pitch-class bits.
InvalidThirdStackEncoding
A third-stack bit pattern could not be decoded into a valid signature.
InvalidThirdStack
A third-stack signature violated the run-length constraints on its steps.
Trait Implementations§
Source§impl Clone for PitchSetError
impl Clone for PitchSetError
Source§fn clone(&self) -> PitchSetError
fn clone(&self) -> PitchSetError
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 PitchSetError
impl Debug for PitchSetError
Source§impl Display for PitchSetError
impl Display for PitchSetError
impl Eq for PitchSetError
Source§impl Error for PitchSetError
impl Error for PitchSetError
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 PartialEq for PitchSetError
impl PartialEq for PitchSetError
impl StructuralPartialEq for PitchSetError
Auto Trait Implementations§
impl Freeze for PitchSetError
impl RefUnwindSafe for PitchSetError
impl Send for PitchSetError
impl Sync for PitchSetError
impl Unpin for PitchSetError
impl UnsafeUnpin for PitchSetError
impl UnwindSafe for PitchSetError
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