Struct tune::tuning::SortedTuning
source · pub struct SortedTuning<S> { /* private fields */ }
Expand description
Type adapter returned by Scale::as_sorted_tuning
.
Trait Implementations§
source§impl<S: Scale> Tuning<i32> for SortedTuning<S>
impl<S: Scale> Tuning<i32> for SortedTuning<S>
source§fn find_by_pitch(&self, pitch: Pitch) -> Approximation<i32>
fn find_by_pitch(&self, pitch: Pitch) -> Approximation<i32>
source§fn 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§
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