pub enum AnyTuningSystem {
Fixed(TuningSystem),
Adaptive(AdaptiveTuningSystem),
}Expand description
Either a normal tuning system or a context-sensitive adaptive tuning system.
Variants§
Fixed(TuningSystem)
Adaptive(AdaptiveTuningSystem)
Implementations§
Source§impl AnyTuningSystem
impl AnyTuningSystem
pub fn frequency_at( self, context: FloatType, index: FloatType, size: Option<UnsignedIntegerType>, ) -> FloatType
pub fn cents_at( self, context: FloatType, index: FloatType, size: Option<UnsignedIntegerType>, ) -> FloatType
pub fn is_adaptive(self) -> bool
Trait Implementations§
Source§impl Clone for AnyTuningSystem
impl Clone for AnyTuningSystem
Source§fn clone(&self) -> AnyTuningSystem
fn clone(&self) -> AnyTuningSystem
Returns a duplicate of the value. Read more
1.0.0 · 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 AnyTuningSystem
impl Debug for AnyTuningSystem
Source§impl From<AdaptiveTuningSystem> for AnyTuningSystem
impl From<AdaptiveTuningSystem> for AnyTuningSystem
Source§fn from(adaptive_tuning_system: AdaptiveTuningSystem) -> Self
fn from(adaptive_tuning_system: AdaptiveTuningSystem) -> Self
Converts to this type from the input type.
Source§impl From<TuningSystem> for AnyTuningSystem
impl From<TuningSystem> for AnyTuningSystem
Source§fn from(tuning_system: TuningSystem) -> Self
fn from(tuning_system: TuningSystem) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AnyTuningSystem
impl PartialEq for AnyTuningSystem
impl Copy for AnyTuningSystem
impl Eq for AnyTuningSystem
impl StructuralPartialEq for AnyTuningSystem
Auto Trait Implementations§
impl Freeze for AnyTuningSystem
impl RefUnwindSafe for AnyTuningSystem
impl Send for AnyTuningSystem
impl Sync for AnyTuningSystem
impl Unpin for AnyTuningSystem
impl UnsafeUnpin for AnyTuningSystem
impl UnwindSafe for AnyTuningSystem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more