pub struct NoteLayout {
pub marker: TextSegment,
pub marker_rise: f64,
pub lines: Vec<LayoutLine>,
}Expand description
One note, laid out and ready to place.
Fields§
§marker: TextSegmentThe pre-shaped superscript number drawn at the start of the note.
marker_rise: f64How far above the baseline the marker sits.
lines: Vec<LayoutLine>The note’s lines, flattened across its paragraphs.
Implementations§
Trait Implementations§
Source§impl Clone for NoteLayout
impl Clone for NoteLayout
Source§fn clone(&self) -> NoteLayout
fn clone(&self) -> NoteLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NoteLayout
impl RefUnwindSafe for NoteLayout
impl Send for NoteLayout
impl Sync for NoteLayout
impl Unpin for NoteLayout
impl UnsafeUnpin for NoteLayout
impl UnwindSafe for NoteLayout
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