pub struct TextLine {
pub range: Range<usize>,
pub width: f32,
pub top: f32,
pub baseline: f32,
pub height: f32,
}Expand description
One line of a broken TextLayout, as reported by TextLayout::lines.
Fields§
§range: Range<usize>Byte range of the line in the source text, trailing whitespace included.
width: f32Width of the line’s content, trailing whitespace excluded.
top: f32Top of the line box, from the top of the layout.
baseline: f32Baseline, from the top of the layout.
height: f32Height of the line box.
Trait Implementations§
impl StructuralPartialEq for TextLine
Auto Trait Implementations§
impl Freeze for TextLine
impl RefUnwindSafe for TextLine
impl Send for TextLine
impl Sync for TextLine
impl Unpin for TextLine
impl UnsafeUnpin for TextLine
impl UnwindSafe for TextLine
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