[][src]Struct embedded_text::utils::font_ext::LineMeasurement

pub struct LineMeasurement {
    pub width: u32,
    pub fits_line: bool,
}

Result of a measure_line function call.

Fields

width: u32

The maximum width that still fits into the given width limit.

fits_line: bool

Whether or not the whole sequence fits into the given width limit.

Implementations

impl LineMeasurement[src]

#[must_use]pub const fn new(width: u32, fits_line: bool) -> Self[src]

Creates a new measurement result object.

#[must_use]pub const fn empty() -> Self[src]

Creates a new measurement result object for an empty line.

Trait Implementations

impl Clone for LineMeasurement[src]

impl Copy for LineMeasurement[src]

impl Debug for LineMeasurement[src]

impl Eq for LineMeasurement[src]

impl PartialEq<LineMeasurement> for LineMeasurement[src]

impl StructuralEq for LineMeasurement[src]

impl StructuralPartialEq for LineMeasurement[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.