BarlineAttributes

Struct BarlineAttributes 

Source
pub struct BarlineAttributes {
    pub coda: Option<Token>,
    pub divisions: Option<Divisions>,
    pub id: Option<Id>,
    pub location: Option<RightLeftMiddle>,
    pub segno: Option<Token>,
}
Expand description

Attributes pertaining to the Barline element.

Fields§

§coda: Option<Token>

Used for playback when there is a Coda child element. Indicates the end point for a forward jump to a coda sign. If there are multiple jumps, the value of these parameters can be used to name and distinguish them.

§divisions: Option<Divisions>

If the segno or coda attributes are used, the divisions attribute can be used to indicate the number of divisions per quarter note. Otherwise sound and MIDI generating programs may have to recompute this.

§id: Option<Id>

Specifies an ID that is unique to the entire document.

§location: Option<RightLeftMiddle>

Barlines have a location attribute to make it easier to process barlines independently of the other musical data in a score. It is often easier to set up measures separately from entering notes. The location attribute must match where the Barline element occurs within the rest of the musical data in the score. If location is “left,” it should be the first element in the measure, aside from the Print, Bookmark, and Link elements. If location is “right,” it should be the last element, again with the possible exception of the Print, Bookmark, and Link elements. The default value is “right.”

§segno: Option<Token>

Used for playback when there is a Segno child element. Indicates the end point for a backward jump to a segno sign. If there are multiple jumps, the value of these parameters can be used to name and distinguish them.

Trait Implementations§

Source§

impl AttributeDeserializer for BarlineAttributes

Source§

impl AttributeSerializer for BarlineAttributes

Source§

impl Debug for BarlineAttributes

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BarlineAttributes

Source§

fn default() -> BarlineAttributes

Returns the “default value” for a type. Read more
Source§

impl PartialEq for BarlineAttributes

Source§

fn eq(&self, other: &BarlineAttributes) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for BarlineAttributes

Source§

impl StructuralPartialEq for BarlineAttributes

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.