pub enum AxisBound {
Bounded(f32),
Unbounded,
Shrink,
}Expand description
An axis bound used inside Constraints.
Describes a bound along a single layout axis.
Variants§
Bounded(f32)
The axis has a finite pixel limit.
Unbounded
The axis is unconstrained — the child may be any size.
Shrink
The axis must shrink to fit its content (intrinsic sizing).
Trait Implementations§
impl Copy for AxisBound
impl StructuralPartialEq for AxisBound
Auto Trait Implementations§
impl Freeze for AxisBound
impl RefUnwindSafe for AxisBound
impl Send for AxisBound
impl Sync for AxisBound
impl Unpin for AxisBound
impl UnsafeUnpin for AxisBound
impl UnwindSafe for AxisBound
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