pub enum PatternMutatorError {
InvalidWire,
InvalidNumber,
InvalidMode(String),
InvalidPitchClass(u8),
}Expand description
Error raised while parsing or validating a pattern mutator.
Variants§
InvalidWire
The wire string was not a valid pattern mutator encoding.
InvalidNumber
A numeric field could not be parsed.
InvalidMode(String)
A scale mode name was not recognized.
InvalidPitchClass(u8)
A pitch class value was out of range.
Trait Implementations§
Source§impl Clone for PatternMutatorError
impl Clone for PatternMutatorError
Source§fn clone(&self) -> PatternMutatorError
fn clone(&self) -> PatternMutatorError
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 PatternMutatorError
impl Debug for PatternMutatorError
Source§impl Display for PatternMutatorError
impl Display for PatternMutatorError
impl Eq for PatternMutatorError
Source§impl Error for PatternMutatorError
impl Error for PatternMutatorError
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 From<ParseIntError> for PatternMutatorError
impl From<ParseIntError> for PatternMutatorError
Source§fn from(_: ParseIntError) -> Self
fn from(_: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PatternMutatorError
impl PartialEq for PatternMutatorError
impl StructuralPartialEq for PatternMutatorError
Auto Trait Implementations§
impl Freeze for PatternMutatorError
impl RefUnwindSafe for PatternMutatorError
impl Send for PatternMutatorError
impl Sync for PatternMutatorError
impl Unpin for PatternMutatorError
impl UnsafeUnpin for PatternMutatorError
impl UnwindSafe for PatternMutatorError
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