pub enum AxisConstraint {
AsGiven,
Unbounded,
Fixed(f32),
}Expand description
What a ConstraintsTransformBox does to one axis of the space on offer.
Variants§
AsGiven
As it came: the child is given the room the parent offered.
Unbounded
Taken away: the child is asked how big it would like to be, and may come back bigger than the room there was.
Fixed(f32)
A number of its own, whatever was offered.
Trait Implementations§
Source§impl Clone for AxisConstraint
impl Clone for AxisConstraint
impl Copy for AxisConstraint
Source§impl Debug for AxisConstraint
impl Debug for AxisConstraint
Source§impl PartialEq for AxisConstraint
impl PartialEq for AxisConstraint
impl StructuralPartialEq for AxisConstraint
Auto Trait Implementations§
impl Freeze for AxisConstraint
impl RefUnwindSafe for AxisConstraint
impl Send for AxisConstraint
impl Sync for AxisConstraint
impl Unpin for AxisConstraint
impl UnsafeUnpin for AxisConstraint
impl UnwindSafe for AxisConstraint
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