pub enum TransformDiagnosticCode {
InvalidAxis,
InvalidMatrix,
InvalidRatio,
InvalidTimeMap,
MissingMidiKey,
NonPositiveDuration,
PitchOutOfScale,
UnsupportedMapping,
}Expand description
Classification of a problem a transform encountered while running.
Variants§
InvalidAxis
An inversion axis could not be resolved to a concrete pitch.
InvalidMatrix
A remap matrix had a non-positive divisor or out-of-range output.
InvalidRatio
A frequency or time ratio was not positive.
InvalidTimeMap
A time map was malformed (too few points or non-monotonic).
MissingMidiKey
A pitch lacked the MIDI key a drum-key remap requires.
NonPositiveDuration
A time map produced a negative note duration.
PitchOutOfScale
A pitch class fell outside the scale a remap needs.
UnsupportedMapping
A mapping was requested that the transform cannot perform.
Trait Implementations§
Source§impl Clone for TransformDiagnosticCode
impl Clone for TransformDiagnosticCode
Source§fn clone(&self) -> TransformDiagnosticCode
fn clone(&self) -> TransformDiagnosticCode
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 moreimpl Copy for TransformDiagnosticCode
Source§impl Debug for TransformDiagnosticCode
impl Debug for TransformDiagnosticCode
impl Eq for TransformDiagnosticCode
Source§impl PartialEq for TransformDiagnosticCode
impl PartialEq for TransformDiagnosticCode
impl StructuralPartialEq for TransformDiagnosticCode
Auto Trait Implementations§
impl Freeze for TransformDiagnosticCode
impl RefUnwindSafe for TransformDiagnosticCode
impl Send for TransformDiagnosticCode
impl Sync for TransformDiagnosticCode
impl Unpin for TransformDiagnosticCode
impl UnsafeUnpin for TransformDiagnosticCode
impl UnwindSafe for TransformDiagnosticCode
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