Struct druid::text::LayoutMetrics
source · pub struct LayoutMetrics {
pub size: Size,
pub first_baseline: f64,
pub trailing_whitespace_width: f64,
}
Expand description
Metrics describing the layout text.
Fields§
§size: Size
The nominal size of the layout.
first_baseline: f64
The distance from the nominal top of the layout to the first baseline.
trailing_whitespace_width: f64
The width of the layout, inclusive of trailing whitespace.
Trait Implementations§
source§impl Clone for LayoutMetrics
impl Clone for LayoutMetrics
source§fn clone(&self) -> LayoutMetrics
fn clone(&self) -> LayoutMetrics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LayoutMetrics
impl Debug for LayoutMetrics
source§impl Default for LayoutMetrics
impl Default for LayoutMetrics
source§fn default() -> LayoutMetrics
fn default() -> LayoutMetrics
Returns the “default value” for a type. Read more
impl Copy for LayoutMetrics
Auto Trait Implementations§
impl RefUnwindSafe for LayoutMetrics
impl Send for LayoutMetrics
impl Sync for LayoutMetrics
impl Unpin for LayoutMetrics
impl UnwindSafe for LayoutMetrics
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.