pub enum Constraint {
Length(u16),
Percentage(u8),
Fill,
}Expand description
One child’s size claim.
Variants§
Length(u16)
A fixed number of cells.
Percentage(u8)
A share of the whole axis, rounded down.
Fill
An equal share of whatever the others leave.
Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
impl Copy for Constraint
Source§impl Debug for Constraint
impl Debug for Constraint
impl Eq for Constraint
Source§impl PartialEq for Constraint
impl PartialEq for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementations§
impl Forget for Constraint
impl Freeze for Constraint
impl Move for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnsafeUnpin for Constraint
impl UnwindSafe for Constraint
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