Struct cosmic_text::LayoutRun

source ·
pub struct LayoutRun<'a> {
    pub line_i: usize,
    pub text: &'a str,
    pub rtl: bool,
    pub glyphs: &'a [LayoutGlyph],
    pub line_y: i32,
}
Expand description

A line of visible text for rendering

Fields

line_i: usize

The index of the original text line

text: &'a str

The original text line

rtl: bool

True if the original paragraph direction is 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.