pub struct Offset {
pub attributes: OffsetAttributes,
pub content: Divisions,
}Expand description
An Offset is represented in terms of divisions, and indicates where the direction will appear relative to the current musical location.
The current musical location is always within the current measure, even at the end of a measure. If an element within a Direction
includes a default_x attribute, the Offset value will be ignored when determining the appearance of that element.
Fields§
§attributes: OffsetAttributesElement-specific attributes
content: DivisionsElement-specific content
Trait Implementations§
Source§impl ElementDeserializer for Offset
impl ElementDeserializer for Offset
fn deserialize(element: &XmlElement) -> Result<Offset, String>
Source§impl ElementSerializer for Offset
impl ElementSerializer for Offset
fn serialize(element: &Offset) -> XmlElement
impl Eq for Offset
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl Freeze for Offset
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnwindSafe for Offset
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