pub enum AvailableSpace {
Definite(f32),
MinContent,
MaxContent,
}Expand description
Available space passed to intrinsic measurement passes.
Variants§
Definite(f32)
Definite available space in logical pixels.
MinContent
Min-content sizing constraint.
MaxContent
Max-content sizing constraint.
Implementations§
Source§impl AvailableSpace
impl AvailableSpace
Sourcepub fn is_definite(&self) -> bool
pub fn is_definite(&self) -> bool
Returns true if this available space is a definite dimension.
Sourcepub fn into_option(self) -> Option<f32>
pub fn into_option(self) -> Option<f32>
Converts to an optional definite length.
Trait Implementations§
Source§impl Clone for AvailableSpace
impl Clone for AvailableSpace
impl Copy for AvailableSpace
Source§impl Debug for AvailableSpace
impl Debug for AvailableSpace
Source§impl From<AvailableSpace> for AvailableSpaceKey
impl From<AvailableSpace> for AvailableSpaceKey
Source§fn from(space: AvailableSpace) -> Self
fn from(space: AvailableSpace) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AvailableSpace
impl PartialEq for AvailableSpace
impl StructuralPartialEq for AvailableSpace
Auto Trait Implementations§
impl Forget for AvailableSpace
impl Freeze for AvailableSpace
impl Move for AvailableSpace
impl RefUnwindSafe for AvailableSpace
impl Send for AvailableSpace
impl Sync for AvailableSpace
impl Unpin for AvailableSpace
impl UnsafeUnpin for AvailableSpace
impl UnwindSafe for AvailableSpace
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