pub struct AxisHold {
pub min: BoundRange,
pub max: BoundRange,
}Expand description
The incoming constraints of one axis a measurement holds for.
Fields§
§min: BoundRange§max: BoundRangeImplementations§
Source§impl AxisHold
impl AxisHold
Sourcepub const fn sized(size: f32) -> Self
pub const fn sized(size: f32) -> Self
Every min and max that keeps size within them: what a layout
whose size does not depend on the bounds holds for.
Sourcepub const fn at_min(size: f32) -> Self
pub const fn at_min(size: f32) -> Self
Constraints whose min is size and whose max allows it: a layout
that takes its min, as an empty one does.
pub fn contains(self, min: f32, max: f32) -> bool
Trait Implementations§
impl Copy for AxisHold
impl StructuralPartialEq for AxisHold
Auto Trait Implementations§
impl Freeze for AxisHold
impl RefUnwindSafe for AxisHold
impl Send for AxisHold
impl Sync for AxisHold
impl Unpin for AxisHold
impl UnsafeUnpin for AxisHold
impl UnwindSafe for AxisHold
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