pub struct Place {
pub page: usize,
pub x0: f64,
pub x1: f64,
pub y0: f64,
pub y1: f64,
pub time: (i64, i64),
pub seen: Vec<String>,
}Expand description
A staff’s bar on its page, and the notes and rests seen in it. Their pitches are sure (a notehead’s place on its staff); what could not be made out is how they share the bar’s time.
Fields§
§page: usizeThe page, from 1.
x0: f64The bar’s left and right edges and the staff’s top and bottom lines, in points from the page’s top left.
x1: f64§y0: f64§y1: f64§time: (i64, i64)The bar’s time, as beats and beat unit.
seen: Vec<String>What stands in the bar, left to right: each chord or rest with its place across the bar (in staff spaces from its left edge), its noteheads’ pitches as written on the staff (without their accidentals), its length by head, flags, beams and dots (in quarters), and its stem.
Trait Implementations§
impl StructuralPartialEq for Place
Auto Trait Implementations§
impl Forget for Place
impl Freeze for Place
impl Move for Place
impl RefUnwindSafe for Place
impl Send for Placewhere
RawVecInner: Send,
impl Sync for Placewhere
RawVecInner: Sync,
impl Unpin for Place
impl UnsafeUnpin for Place
impl UnwindSafe for Placewhere
RawVecInner: UnwindSafe,
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