pub enum Bounds {
Min(f32),
Max(f32),
Both {
min: f32,
max: f32,
},
}Expand description
The space limits of a Bounded length.
Variants§
Min(f32)
The length must be at least a certain amount of pixels.
Max(f32)
The length must not exceed a certain amount of pixels.
Both
The length must be inside a range of pixels.
Implementations§
Source§impl Bounds
impl Bounds
Sourcepub fn constraint(self) -> Constraint
pub fn constraint(self) -> Constraint
Returns a Constraint that represents the current Bounds.
Trait Implementations§
impl Copy for Bounds
impl StructuralPartialEq for Bounds
Auto Trait Implementations§
impl Freeze for Bounds
impl RefUnwindSafe for Bounds
impl Send for Bounds
impl Sync for Bounds
impl Unpin for Bounds
impl UnsafeUnpin for Bounds
impl UnwindSafe for Bounds
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