pub enum AvailableSpace {
Definite(f32),
MinContent,
MaxContent,
}Expand description
The space a measure call offers on one axis, or the intrinsic size it asks for instead.
Variants§
Definite(f32)
Space offered in logical pixels.
MinContent
Asks for the smallest size the content fits in, such as the widest word of a text.
MaxContent
Asks for the size the content takes without wrapping.
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 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