pub enum BeatDivision {
Other,
Simple,
Compound,
}Expand description
How the beat of a meter subdivides.
Mirrors music21’s beatDivisionCountName.
Variants§
Other
A single-beat meter, which music21 reports as Other rather than as a
division — there is no lower level to divide.
Simple
Beats divide in two.
Compound
Beats divide in three.
Implementations§
Source§impl BeatDivision
impl BeatDivision
Sourcepub fn music21_name(self) -> &'static str
pub fn music21_name(self) -> &'static str
Returns music21’s name for this division.
Sourcepub fn count(self) -> UnsignedIntegerType
pub fn count(self) -> UnsignedIntegerType
Returns the number of divisions in one beat.
Matches music21’s beatDivisionCount, which reports 1 rather than
raising for a single-beat meter.
Trait Implementations§
Source§impl Clone for BeatDivision
impl Clone for BeatDivision
Source§fn clone(&self) -> BeatDivision
fn clone(&self) -> BeatDivision
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 BeatDivision
Source§impl Debug for BeatDivision
impl Debug for BeatDivision
impl Eq for BeatDivision
Source§impl Hash for BeatDivision
impl Hash for BeatDivision
Source§impl PartialEq for BeatDivision
impl PartialEq for BeatDivision
Source§fn eq(&self, other: &BeatDivision) -> bool
fn eq(&self, other: &BeatDivision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BeatDivision
Auto Trait Implementations§
impl Freeze for BeatDivision
impl RefUnwindSafe for BeatDivision
impl Send for BeatDivision
impl Sync for BeatDivision
impl Unpin for BeatDivision
impl UnsafeUnpin for BeatDivision
impl UnwindSafe for BeatDivision
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