Enum void_app_api::Layout
source · pub enum Layout {
Column(Column),
Row(Row),
Grid(Grid),
Cell(CellLayout),
}
Expand description
A Layout
tells a component how to place it’s children.
Variants§
Column(Column)
Row(Row)
Grid(Grid)
Cell(CellLayout)
The “cell” layout. A component with the “cell” layout means that it has no child components. The component can optionally contain text content, which
will be placed based on the inner CellLayout
value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layout
impl !RefUnwindSafe for Layout
impl !Send for Layout
impl !Sync for Layout
impl Unpin for Layout
impl !UnwindSafe for Layout
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