Struct tune::tuning::SortedTuning
source · [−]pub struct SortedTuning<S> { /* private fields */ }
Expand description
Type adapter returned by Scale::as_sorted_tuning
.
Trait Implementations
sourceimpl<S: Scale> Tuning<i32> for SortedTuning<S>
impl<S: Scale> Tuning<i32> for SortedTuning<S>
sourcefn find_by_pitch(&self, pitch: Pitch) -> Approximation<i32>
fn find_by_pitch(&self, pitch: Pitch) -> Approximation<i32>
Finds a closest key or note Approximation
for the given Pitch
in the current Tuning
. Read more
sourcefn as_linear_mapping(self) -> LinearMapping<Self> where
Self: Sized,
fn as_linear_mapping(self) -> LinearMapping<Self> where
Self: Sized,
Wraps self
in a type adapter s.t. it can be used in functions that are generic over KeyboardMapping<K>
.
Auto Trait Implementations
impl<S> RefUnwindSafe for SortedTuning<S> where
S: RefUnwindSafe,
impl<S> Send for SortedTuning<S> where
S: Send,
impl<S> Sync for SortedTuning<S> where
S: Sync,
impl<S> Unpin for SortedTuning<S> where
S: Unpin,
impl<S> UnwindSafe for SortedTuning<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more