pub enum SegmentDivision {
Required,
Optional,
}Expand description
Where a braille segment divides: music21’s BrailleSegmentDivision and
BrailleOptionalSegmentDivision. Standing in a measure, it ends the
segment there, in the middle of the measure if need be.
use music21::braille::SegmentDivision;
assert_eq!(SegmentDivision::Required.class_name(), "BrailleSegmentDivision");
assert_eq!(
SegmentDivision::Optional.class_name(),
"BrailleOptionalSegmentDivision"
);Variants§
Required
The segment divides here, unless it holds nothing yet.
Optional
The segment divides here only once it holds more than 48 elements.
Implementations§
Source§impl SegmentDivision
impl SegmentDivision
Sourcepub fn class_name(self) -> &'static str
pub fn class_name(self) -> &'static str
music21’s class name for it.
Trait Implementations§
Source§impl Clone for SegmentDivision
impl Clone for SegmentDivision
impl Copy for SegmentDivision
Source§impl Debug for SegmentDivision
impl Debug for SegmentDivision
Source§impl<'de> Deserialize<'de> for SegmentDivision
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SegmentDivision
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SegmentDivision
Source§impl From<SegmentDivision> for StreamElement
impl From<SegmentDivision> for StreamElement
Source§fn from(value: SegmentDivision) -> Self
fn from(value: SegmentDivision) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SegmentDivision
impl PartialEq for SegmentDivision
Source§impl Serialize for SegmentDivision
Available on crate feature serde only.
impl Serialize for SegmentDivision
Available on crate feature
serde only.impl StructuralPartialEq for SegmentDivision
Auto Trait Implementations§
impl Forget for SegmentDivision
impl Freeze for SegmentDivision
impl RefUnwindSafe for SegmentDivision
impl Send for SegmentDivision
impl Sync for SegmentDivision
impl Unpin for SegmentDivision
impl UnsafeUnpin for SegmentDivision
impl UnwindSafe for SegmentDivision
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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