Skip to main content

DirectionTypeContents

Enum DirectionTypeContents 

Source
pub enum DirectionTypeContents {
Show 24 variants Rehearsal(Vec<Rehearsal>), Segno(Vec<Segno>), Coda(Vec<Coda>), Words(Vec<Words>), Symbol(Vec<Symbol>), Wedge(Wedge), Dynamics(Vec<Dynamics>), Dashes(Dashes), Bracket(Bracket), Pedal(Pedal), Metronome(Metronome), OctaveShift(OctaveShift), HarpPedals(HarpPedals), Damp(Damp), DampAll(DampAll), Eyeglasses(Eyeglasses), StringMute(StringMute), Scordatura(Scordatura), Image(Image), PrincipalVoice(PrincipalVoice), Percussion(Vec<Percussion>), AccordionRegistration(AccordionRegistration), StaffDivide(StaffDivide), OtherDirection(OtherDirection),
}
Expand description

The DirectionTypeContents element specifies all possible options available for use in a DirectionType element.

Variants§

§

Rehearsal(Vec<Rehearsal>)

The Rehearsal element indicates a rehearsal mark.

§

Segno(Vec<Segno>)

The Segno element indicates a segno mark.

§

Coda(Vec<Coda>)

The Coda element indicates a coda mark.

§

Words(Vec<Words>)

The Words element specifies a text direction.

§

Symbol(Vec<Symbol>)

The Symbol element specifies a musical symbol.

§

Wedge(Wedge)

The Wedge element specifies a wedge symbol.

§

Dynamics(Vec<Dynamics>)

The Dynamics element specifies a dynamic mark.

§

Dashes(Dashes)

The Dashes element specifies a dashed line.

§

Bracket(Bracket)

The Bracket element specifies a bracket.

§

Pedal(Pedal)

The Pedal element specifies a piano pedal mark.

§

Metronome(Metronome)

The Metronome element specifies a metronome mark.

§

OctaveShift(OctaveShift)

The OctaveShift element specifies an octave shift.

§

HarpPedals(HarpPedals)

The HarpPedals element specifies harp pedal settings.

§

Damp(Damp)

The Damp element specifies a damp mark.

§

DampAll(DampAll)

The DampAll element specifies a damp all mark.

§

Eyeglasses(Eyeglasses)

The Eyeglasses element specifies eyeglasses.

§

StringMute(StringMute)

The StringMute element specifies a string mute.

§

Scordatura(Scordatura)

The Scordatura element specifies scordatura tuning.

§

Image(Image)

The Image element specifies an image.

§

PrincipalVoice(PrincipalVoice)

The PrincipalVoice element specifies the principal voice.

§

Percussion(Vec<Percussion>)

The Percussion element specifies percussion notation.

§

AccordionRegistration(AccordionRegistration)

The AccordionRegistration element specifies accordion registration.

§

StaffDivide(StaffDivide)

The StaffDivide element specifies a staff divide.

§

OtherDirection(OtherDirection)

The OtherDirection element specifies a direction not yet defined.

Trait Implementations§

Source§

impl ContentDeserializer for DirectionTypeContents

Source§

fn deserialize(elements: &[XmlElement]) -> Result<Self, String>

Source§

impl ContentSerializer for DirectionTypeContents

Source§

fn serialize(element: &Self) -> Vec<XmlElement>

Source§

impl Debug for DirectionTypeContents

Source§

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

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

impl Eq for DirectionTypeContents

Source§

impl PartialEq for DirectionTypeContents

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 StructuralPartialEq for DirectionTypeContents

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.