Struct embedded_text::style::LineMeasurement[][src]

#[must_use]
pub struct LineMeasurement { pub max_line_width: u32, pub width: u32, pub last_line: bool, }
Expand description

Information about a line.

Fields

max_line_width: u32

Maximum line width in pixels.

width: u32

Width in pixels, using the default space width returned by the text renderer.

last_line: bool

Whether this line is the last line of a paragraph.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Casts the value.

Should always be Self

Casts the value.

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.

Casts the value.

Casts the value.