pub struct TextLayoutRun<'a> {
    pub line_i: TextLineIndex,
    pub text: &'a str,
    pub rtl: bool,
    pub glyphs: &'a [LayoutGlyph],
    pub line_y: i32,
}

Fields

line_i: TextLineIndex

The index of the original text line

text: &'a str

The original text line

rtl: bool

True if the original shaped line was RTL

glyphs: &'a [LayoutGlyph]

The array of layout glyphs to draw

line_y: i32

Y offset of line

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.