pub struct StaffText {
pub text: StaffTextKind,
pub position: Option<u8>,
}
Expand description
Represents some staff text
Fields§
§text: StaffTextKind
§position: Option<u8>
You can move the text upwards relative to the current chord by adding a
- followed by two digit number between 00 (below the system) and 74 (above the system)
Implementations§
Source§impl StaffText
impl StaffText
pub fn new(text: StaffTextKind) -> Self
pub fn set_position(&mut self, position: Option<u8>)
Trait Implementations§
impl Eq for StaffText
impl StructuralPartialEq for StaffText
Auto Trait Implementations§
impl Freeze for StaffText
impl RefUnwindSafe for StaffText
impl Send for StaffText
impl Sync for StaffText
impl Unpin for StaffText
impl UnwindSafe for StaffText
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