pub enum OverflowBoxFit {
Max,
DeferToChild,
}Expand description
How much space should be occupied by the RenderConstrainedOverflowBox when it is not
overflowing.
Variants§
Max
The widget will size itself to be as large as the parent allows.
DeferToChild
The widget will follow the child’s size.
More specifically, the render object will size itself to match the size of its child within the constraints of its parent, or as small as the parent allows if no child is set.
Trait Implementations§
Source§impl Clone for OverflowBoxFit
impl Clone for OverflowBoxFit
impl Copy for OverflowBoxFit
Source§impl Debug for OverflowBoxFit
impl Debug for OverflowBoxFit
impl Eq for OverflowBoxFit
Source§impl PartialEq for OverflowBoxFit
impl PartialEq for OverflowBoxFit
impl StructuralPartialEq for OverflowBoxFit
Auto Trait Implementations§
impl Freeze for OverflowBoxFit
impl RefUnwindSafe for OverflowBoxFit
impl Send for OverflowBoxFit
impl Sync for OverflowBoxFit
impl Unpin for OverflowBoxFit
impl UnsafeUnpin for OverflowBoxFit
impl UnwindSafe for OverflowBoxFit
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.