pub enum BarlineType {
Regular,
Dotted,
Dashed,
Heavy,
Double,
Final,
HeavyLight,
HeavyHeavy,
Tick,
Short,
None,
}Expand description
How a barline is drawn: music21’s bar.barTypeList.
Variants§
Regular
A single thin line.
Dotted
A dotted line.
Dashed
A dashed line.
Heavy
A single thick line.
Double
Two thin lines.
Final
A thin line and a thick one, which ends a piece.
HeavyLight
A thick line and a thin one.
HeavyHeavy
Two thick lines.
Tick
A short stroke through the top line.
Short
A line through the middle of the staff only.
None
No line at all.
Implementations§
Source§impl BarlineType
impl BarlineType
Sourcepub const ALL: [BarlineType; 11]
pub const ALL: [BarlineType; 11]
Every type, in music21’s order.
Sourcepub fn from_name(name: &str) -> Result<Self>
pub fn from_name(name: &str) -> Result<Self>
Reads a type by music21’s name or by the MusicXML name music21
allows for two of them: music21’s standardizeBarType.
Sourcepub fn musicxml_bar_style(self) -> &'static str
pub fn musicxml_bar_style(self) -> &'static str
The name MusicXML draws it by: music21’s musicXMLBarStyle, which
is the type’s own name but for double and final.
Trait Implementations§
Source§impl Clone for BarlineType
impl Clone for BarlineType
impl Copy for BarlineType
Source§impl Debug for BarlineType
impl Debug for BarlineType
Source§impl Default for BarlineType
impl Default for BarlineType
Source§impl<'de> Deserialize<'de> for BarlineType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for BarlineType
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 BarlineType
Source§impl Hash for BarlineType
impl Hash for BarlineType
Source§impl PartialEq for BarlineType
impl PartialEq for BarlineType
Source§impl Serialize for BarlineType
Available on crate feature serde only.
impl Serialize for BarlineType
Available on crate feature
serde only.impl StructuralPartialEq for BarlineType
Auto Trait Implementations§
impl Freeze for BarlineType
impl RefUnwindSafe for BarlineType
impl Send for BarlineType
impl Sync for BarlineType
impl Unpin for BarlineType
impl UnsafeUnpin for BarlineType
impl UnwindSafe for BarlineType
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