pub struct StaffLayout {
pub distance: Option<Tenths>,
pub staff_number: Option<i64>,
pub staff_size: Option<FloatType>,
pub staff_lines: Option<i64>,
pub hidden: Option<bool>,
pub staff_type: StaffType,
}Expand description
How a staff stands from the one above it and what it is: music21’s
StaffLayout, which MusicXML splits into <staff-layout> and
<staff-details>.
Fields§
§distance: Option<Tenths>How far the staff stands from the one above: distance.
staff_number: Option<i64>Which staff of its part it is, where it says: staffNumber.
staff_size: Option<FloatType>Its size, a percentage of the ordinary staff’s: staffSize.
staff_lines: Option<i64>How many lines it has, where not five: staffLines.
Whether it is hidden: hidden, nothing to inherit it.
staff_type: StaffTypeWhat it is for: staffType.
Trait Implementations§
Source§impl Clone for StaffLayout
impl Clone for StaffLayout
Source§impl Debug for StaffLayout
impl Debug for StaffLayout
Source§impl Default for StaffLayout
impl Default for StaffLayout
Source§impl<'de> Deserialize<'de> for StaffLayout
Available on crate feature serde only.
impl<'de> Deserialize<'de> for StaffLayout
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
Source§impl PartialEq for StaffLayout
impl PartialEq for StaffLayout
Source§impl Serialize for StaffLayout
Available on crate feature serde only.
impl Serialize for StaffLayout
Available on crate feature
serde only.impl StructuralPartialEq for StaffLayout
Auto Trait Implementations§
impl Freeze for StaffLayout
impl RefUnwindSafe for StaffLayout
impl Send for StaffLayout
impl Sync for StaffLayout
impl Unpin for StaffLayout
impl UnsafeUnpin for StaffLayout
impl UnwindSafe for StaffLayout
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