pub struct Layout<T> {
pub axis: Axis,
pub item_gap: T,
pub run_gap: T,
pub align: Align,
pub justify: Justify,
}Expand description
wraps children into rows or columns
measured sizes choose the runs, then grow children share the space left in each run if a grow child reaches its limit, the unused space is left for justification
Fields§
§axis: Axis§item_gap: T§run_gap: T§align: Align§justify: JustifyImplementations§
Source§impl<T> Layout<T>where
T: Scalar,
impl<T> Layout<T>where
T: Scalar,
Sourcepub fn axis(self, value: Axis) -> Layout<T>
pub fn axis(self, value: Axis) -> Layout<T>
sets Self::axis
Sourcepub fn item_gap(self, value: T) -> Layout<T>
pub fn item_gap(self, value: T) -> Layout<T>
sets Self::item_gap
Sourcepub fn run_gap(self, value: T) -> Layout<T>
pub fn run_gap(self, value: T) -> Layout<T>
sets Self::run_gap
Sourcepub fn align(self, value: Align) -> Layout<T>
pub fn align(self, value: Align) -> Layout<T>
sets Self::align
Sourcepub fn justify(self, value: Justify) -> Layout<T>
pub fn justify(self, value: Justify) -> Layout<T>
sets Self::justify
Trait Implementations§
impl<T> Copy for Layout<T>where
T: Copy,
Source§impl<C, T> Layout<C> for Layout<T>
impl<C, T> Layout<C> for Layout<T>
impl<T> StructuralPartialEq for Layout<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Forget for Layout<T>
impl<T> Freeze for Layout<T>where
T: Freeze,
impl<T> Move for Layout<T>
impl<T> RefUnwindSafe for Layout<T>where
T: RefUnwindSafe,
impl<T> Send for Layout<T>where
T: Send,
impl<T> Sync for Layout<T>where
T: Sync,
impl<T> Unpin for Layout<T>where
T: Unpin,
impl<T> UnsafeUnpin for Layout<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Layout<T>where
T: UnwindSafe,
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