pub struct TextLine {
pub glyphs: Vec<ShapedGlyph>,
pub content_width: LayoutUnit,
pub trailing_space_width: LayoutUnit,
pub is_hard_break: bool,
}Expand description
A segmented line of shaped glyphs resulting from the line breaking pass.
Fields§
§glyphs: Vec<ShapedGlyph>The shaped glyphs placed on this line.
content_width: LayoutUnitTotal horizontal advance width of the line excluding trailing whitespace.
trailing_space_width: LayoutUnitAdvance width of trailing whitespace.
is_hard_break: boolWhether this line ended with an explicit mandatory break (\n).
Trait Implementations§
impl StructuralPartialEq for TextLine
Auto Trait Implementations§
impl Forget for TextLine
impl Freeze for TextLine
impl Move 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