pub struct SegmentKey {
pub measure: IntegerType,
pub ordinal: usize,
pub affinity: Affinity,
pub hand: Option<Hand>,
}Expand description
Where a grouping stands: its measure, its place among the measure’s
groupings, its kind and its hand: music21’s SegmentKey.
Fields§
§measure: IntegerTypeThe measure’s number.
ordinal: usizeWhich run of groupings in the measure, counting from nought.
affinity: AffinityThe kind of grouping.
hand: Option<Hand>The hand, at a keyboard.
Trait Implementations§
Source§impl Clone for SegmentKey
impl Clone for SegmentKey
impl Copy for SegmentKey
Source§impl Debug for SegmentKey
impl Debug for SegmentKey
impl Eq for SegmentKey
Source§impl Hash for SegmentKey
impl Hash for SegmentKey
Source§impl Ord for SegmentKey
impl Ord for SegmentKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SegmentKey
impl PartialEq for SegmentKey
Source§impl PartialOrd for SegmentKey
impl PartialOrd for SegmentKey
impl StructuralPartialEq for SegmentKey
Auto Trait Implementations§
impl Freeze for SegmentKey
impl RefUnwindSafe for SegmentKey
impl Send for SegmentKey
impl Sync for SegmentKey
impl Unpin for SegmentKey
impl UnsafeUnpin for SegmentKey
impl UnwindSafe for SegmentKey
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