pub struct Line {
pub runs: Vec<PlacedRun>,
pub baseline: f32,
pub ascent: f32,
pub descent: f32,
pub left: f32,
pub width: f32,
pub range: Range<usize>,
}Fields§
§runs: Vec<PlacedRun>§baseline: f32y of the baseline, paragraph-local.
ascent: f32Max ascent/descent over the line’s runs (px above/below baseline).
descent: f32§left: f32x where content starts (alignment shift included).
width: f32Content width (trailing whitespace excluded).
range: Range<usize>Byte range of the paragraph text this line covers.
Trait Implementations§
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