pub enum StackFit {
Loose,
Expand,
Passthrough,
}Expand description
How to size the non-positioned children of a RenderStack.
Variants§
Loose
The constraints passed to the stack from its parent are loosened.
For example, if the stack has constraints that force it to 350x600, then this would allow the non-positioned children of the stack to have any width from zero to 350 and any height from zero to 600.
Expand
The constraints passed to the stack from its parent are tightened to the biggest size allowed.
For example, if the stack has loose constraints with a width in the range 10 to 100 and a height in the range 0 to 600, then the non-positioned children of the stack would all be sized as 100 pixels wide and 600 high.
Passthrough
The constraints passed to the stack from its parent are passed unmodified to the non-positioned children.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.