pub enum StackFit {
Loose,
Expand,
Passthrough,
}Expand description
How a stack sizes the layers that are not crate::Positioned — the reference’s
StackFit (stack.dart:301).
Variants§
Loose
Allowed up to the stack’s room: each layer is as big as it wants to be, at most the stack. The default, as in the reference.
Expand
Forced to the room the stack is given: every unpinned layer is exactly that big, whatever size it has of its own, and so is the stack.
Passthrough
Handed the room the stack is given: a layer with no size of its own fills it, and one with a size keeps it — the stack’s own constraints, passed through, for a stack that is allowed its room rather than forced into it.
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