pub enum Flow {
Row,
Column,
Stack,
Grid(u16),
Wrap,
}Expand description
How a box lays out its children.
Variants§
Row
Side by side, from the left.
Column
Top to bottom.
Stack
Stacked, each placed on its own.
Grid(u16)
In this many columns, row by row: a column is as wide as its widest box, a row as high
as its tallest. Columns with a growing box share the leftover room. The gap applies
between columns and rows, unless the box sets a row gap
(El::line_gap).
Wrap
Left to right, wrapping to a new line when out of width: tags, toolbar buttons,
thumbnails. A line is as high as its tallest box; the gap also separates lines unless
set otherwise (El::line_gap); a box that grows across gets a
line to itself.
Trait Implementations§
impl Copy for Flow
impl StructuralPartialEq for Flow
Auto Trait Implementations§
impl Forget for Flow
impl Freeze for Flow
impl Move for Flow
impl RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnsafeUnpin for Flow
impl UnwindSafe for Flow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more