pub enum AxisConstraint {
AsGiven,
Unbounded,
Fixed(f32),
Loose,
Limited(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.
Loose
The room on offer as the most the child may take, not a size it is handed: a paragraph wraps at it and is then as wide as its longest line. With no room on offer, as big as it likes (milestone 598).
Limited(f32)
As Loose where the room on offer is bounded; where it is not, at most
this many pixels. What LimitedBox does (milestone 598).
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