pub struct Line {
pub inlines: Vec<Inline>,
pub y: f32,
pub x: f32,
pub end_x: f32,
pub size: f32,
}Expand description
One visual line. The geometry travels with it because later structure passes — lists, tables, page headers and footers — classify lines by it.
Fields§
§inlines: Vec<Inline>§y: f32Baseline of the line’s first span.
x: f32Left edge: the leftmost span’s origin.
end_x: f32Right edge: the rightmost span’s end, after its last glyph’s advance.
size: f32The largest font size on the line.
Trait Implementations§
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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