Enum iced_glow::Length[]

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

The strategy used to fill space in a specific dimension.

Variants

Fill

Fill all the remaining space

FillPortion(u16)

Fill a portion of the remaining space relative to other elements.

Let’s say we have two elements: one with FillPortion(2) and one with FillPortion(3). The first will get 2 portions of the available space, while the second one would get 3.

Length::Fill is equivalent to Length::FillPortion(1).

Shrink

Fill the least amount of space

Units(u16)

Fill a fixed amount of space

Implementations

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 Clone for Length

impl Copy for Length

impl Debug for Length

impl From<u16> for Length

impl Hash for Length

impl PartialEq<Length> for Length

impl StructuralPartialEq for Length

Auto Trait Implementations

impl RefUnwindSafe for Length

impl Send for Length

impl Sync for Length

impl Unpin for Length

impl UnwindSafe for Length

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> Pointable for T

type Init = T

The type for initializers.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,