pub enum StackFit {
Expand,
Loose,
}Expand description
How a stack sizes the layers that are not crate::Positioned — the reference’s
StackFit.
Variants§
Expand
Given the stack’s box: every layer is as big as the stack. The default here, for the reason the module documentation gives.
Loose
Asked what size it would like, and then placed by the stack’s alignment. The reference’s default, and what a badge, a caption or a floating button wants.
Trait Implementations§
impl Copy for StackFit
impl Eq for StackFit
impl StructuralPartialEq for StackFit
Auto Trait Implementations§
impl Freeze for StackFit
impl RefUnwindSafe for StackFit
impl Send for StackFit
impl Sync for StackFit
impl Unpin for StackFit
impl UnsafeUnpin for StackFit
impl UnwindSafe for StackFit
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