Struct zi::Item

source · []
pub struct Item { /* private fields */ }
Expand description

Represents a flex item, a layout tree nested inside a container.

An Item consists of a Layout and an associated FlexBasis. The latter specifies how much space the layout should take along the main axis of the container.

Implementations

Creates an item that will share the available space equally with other sibling items with FlexBasis::auto.

Creates an item that will have a fixed size.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.