pub enum TrackSize {
Auto,
Fixed(f32),
MinContent,
MaxContent,
FitContent(f32),
Flex(f32),
Minmax(Box<TrackSize>, Box<TrackSize>),
}Expand description
Track sizing function for grid templates.
Variants§
Auto
Track size is determined by content (auto)
Fixed(f32)
Fixed size in pixels/units
MinContent
Minimum content size
MaxContent
Maximum content size
FitContent(f32)
Fit content with maximum size
Flex(f32)
Flexible fraction (fr units)
Minmax(Box<TrackSize>, Box<TrackSize>)
Minmax constraint
Trait Implementations§
impl StructuralPartialEq for TrackSize
Auto Trait Implementations§
impl Freeze for TrackSize
impl RefUnwindSafe for TrackSize
impl Send for TrackSize
impl Sync for TrackSize
impl Unpin for TrackSize
impl UnwindSafe for TrackSize
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