pub struct PitchRange {
pub low: Pitch,
pub high: Pitch,
}Expand description
Allowed pitch range, inclusive at both ends.
Fields§
§low: PitchLowest allowed pitch.
high: PitchHighest allowed pitch.
Implementations§
Source§impl PitchRange
impl PitchRange
Trait Implementations§
Source§impl Clone for PitchRange
impl Clone for PitchRange
Source§fn clone(&self) -> PitchRange
fn clone(&self) -> PitchRange
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 PitchRange
Source§impl Debug for PitchRange
impl Debug for PitchRange
impl Eq for PitchRange
Source§impl PartialEq for PitchRange
impl PartialEq for PitchRange
impl StructuralPartialEq for PitchRange
Auto Trait Implementations§
impl Freeze for PitchRange
impl RefUnwindSafe for PitchRange
impl Send for PitchRange
impl Sync for PitchRange
impl Unpin for PitchRange
impl UnsafeUnpin for PitchRange
impl UnwindSafe for PitchRange
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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