pub enum PitchMapPolicy {
Unmapped,
Clamp,
Reject,
Nearest,
}Expand description
Policy used when a PitchMap has no direct image for a source class.
Variants§
Unmapped
Keep the input pitch and record an unmapped witness.
Clamp
Clamp to the nearest mapped source class without wrapping around the domain.
Reject
Reject the pitch as a diagnostic or direct mapping error.
Nearest
Nudge to the nearest mapped source class on the circular octave space.
Trait Implementations§
Source§impl Clone for PitchMapPolicy
impl Clone for PitchMapPolicy
Source§fn clone(&self) -> PitchMapPolicy
fn clone(&self) -> PitchMapPolicy
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 PitchMapPolicy
Source§impl Debug for PitchMapPolicy
impl Debug for PitchMapPolicy
impl Eq for PitchMapPolicy
Source§impl Hash for PitchMapPolicy
impl Hash for PitchMapPolicy
Source§impl PartialEq for PitchMapPolicy
impl PartialEq for PitchMapPolicy
impl StructuralPartialEq for PitchMapPolicy
Auto Trait Implementations§
impl Freeze for PitchMapPolicy
impl RefUnwindSafe for PitchMapPolicy
impl Send for PitchMapPolicy
impl Sync for PitchMapPolicy
impl Unpin for PitchMapPolicy
impl UnsafeUnpin for PitchMapPolicy
impl UnwindSafe for PitchMapPolicy
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