pub enum Layout {
Row {
gap: f64,
alignment: Alignment,
},
Column {
gap: f64,
alignment: Alignment,
},
}Expand description
A measured layout container, evaluated before its own node placement.
Variants§
Row
Arrange children horizontally, with vertical alignment.
Fields
Column
Arrange children vertically, with horizontal alignment.
Trait Implementations§
impl Copy for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Forget for Layout
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin 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