#[non_exhaustive]pub enum Available {
Definite(f32),
MinContent,
MaxContent,
}Expand description
Space offered to a measured leaf along one axis.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Definite(f32)
A definite number of logical pixels.
MinContent
Lay out as narrow as possible (e.g. wrap at every opportunity).
MaxContent
Lay out without constraints (e.g. never wrap).
Implementations§
Trait Implementations§
impl Copy for Available
impl StructuralPartialEq for Available
Auto Trait Implementations§
impl Freeze for Available
impl RefUnwindSafe for Available
impl Send for Available
impl Sync for Available
impl Unpin for Available
impl UnsafeUnpin for Available
impl UnwindSafe for Available
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