Enum cursive::align::VAlign

source ·
pub enum VAlign {
    Top,
    Center,
    Bottom,
}
Expand description

Vertical alignment

Variants

Top

Place the element at the top of available space

Center

Place the element vertically in the center of available space

Bottom

Place the element at the bottom of available space

Implementations

Returns the offset required to position a view.

When drawing a view with size content when the available size is container, printing at the resulting offset will align the view as desired.

Trait Implementations

Formats the value using the given formatter. Read more

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.