pub struct ConstraintsHold {
pub width: AxisHold,
pub height: AxisHold,
}Expand description
The incoming constraints a measurement stays the same under. A node whose inputs did not change answers any constraints inside with the measurement it has, instead of measuring again: an animated width otherwise measured again every fixed-size box and every text it does not wrap.
Fields§
§width: AxisHold§height: AxisHoldImplementations§
Source§impl ConstraintsHold
impl ConstraintsHold
Sourcepub const fn sized(width: f32, height: f32) -> Self
pub const fn sized(width: f32, height: f32) -> Self
Every constraints that keeps width by height within them.
Sourcepub const fn at_min(width: f32, height: f32) -> Self
pub const fn at_min(width: f32, height: f32) -> Self
Constraints whose mins are width by height: what a layout that
takes its min constraints holds for.
pub fn contains(&self, constraints: Constraints) -> bool
Trait Implementations§
Source§impl Clone for ConstraintsHold
impl Clone for ConstraintsHold
impl Copy for ConstraintsHold
Source§impl Debug for ConstraintsHold
impl Debug for ConstraintsHold
Source§impl PartialEq for ConstraintsHold
impl PartialEq for ConstraintsHold
impl StructuralPartialEq for ConstraintsHold
Auto Trait Implementations§
impl Freeze for ConstraintsHold
impl RefUnwindSafe for ConstraintsHold
impl Send for ConstraintsHold
impl Sync for ConstraintsHold
impl Unpin for ConstraintsHold
impl UnsafeUnpin for ConstraintsHold
impl UnwindSafe for ConstraintsHold
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