[]Enum iced::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

pub fn fill_factor(&self) -> u16

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

impl Copy for Length

impl Hash for Length

impl PartialEq<Length> for Length

impl StructuralPartialEq for Length

impl Clone for Length

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]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> SetParameter for T