pub struct Layout { /* private fields */ }Expand description
Layout builder.
Implementations§
Source§impl Layout
impl Layout
pub fn new( direction: Direction, constraints: impl Into<Vec<Constraint>>, ) -> Self
pub fn vertical(constraints: impl Into<Vec<Constraint>>) -> Self
pub fn horizontal(constraints: impl Into<Vec<Constraint>>) -> Self
pub fn direction(self, direction: Direction) -> Self
pub fn constraints(self, constraints: impl Into<Vec<Constraint>>) -> Self
pub fn margin(self, margin: Margin) -> Self
pub fn flex(self, flex: Flex) -> Self
pub fn spacing(self, spacing: i16) -> Self
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 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