pub struct PatternDef {
pub muted: bool,
pub name: String,
pub instrument: String,
pub notation: MiniNotation,
pub transforms: Vec<Transform>,
pub group: Option<String>,
pub section: Option<String>,
pub span: Option<Span>,
}Expand description
A pattern definition:
[;] <name> <instrument> "<mini>" [@ span] [| transform ...]
Fields§
§muted: bool§name: String§instrument: String§notation: MiniNotation§transforms: Vec<Transform>§group: Option<String>The group this line sits inside, if any — assigned by
parse_program, not by the line itself.
section: Option<String>The section this line sits inside, if any — likewise assigned by
parse_program. None in a live
buffer, and in a piece means a top-level line that sounds throughout.
span: Option<Span>@ 3..8 — where in its section the line sounds (§8.3). None is the
whole section. Only legal on a section member.
Trait Implementations§
Source§impl Clone for PatternDef
impl Clone for PatternDef
Source§impl Debug for PatternDef
impl Debug for PatternDef
Source§impl PartialEq for PatternDef
impl PartialEq for PatternDef
impl StructuralPartialEq for PatternDef
Auto Trait Implementations§
impl Freeze for PatternDef
impl RefUnwindSafe for PatternDef
impl Send for PatternDef
impl Sync for PatternDef
impl Unpin for PatternDef
impl UnsafeUnpin for PatternDef
impl UnwindSafe for PatternDef
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