[][src]Enum iced_web::Length

pub enum Length {
    Fill,
    Shrink,
    Units(u16),
}

The strategy used to fill space in a specific dimension.

Variants

Fill

Fill all the remaining space

Shrink

Fill the least amount of space

Units(u16)

Fill a fixed amount of space

Methods

impl Length[src]

pub fn fill_factor(&self) -> u16[src]

Returns the fill factor of the Length.

The fill factor is a relative unit describing how much of the remaining space should be filled when compared to other elements. It is only meant to be used by layout engines.

Trait Implementations

impl Debug for Length[src]

impl Copy for Length[src]

impl Hash for Length[src]

impl PartialEq<Length> for Length[src]

impl StructuralPartialEq for Length[src]

impl Clone for Length[src]

Auto Trait Implementations

impl Send for Length

impl Sync for Length

impl Unpin for Length

impl UnwindSafe for Length

impl RefUnwindSafe for Length

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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