pub enum Track {
Px(f32),
Fr(f32),
Auto,
MinMax(TrackSide, TrackSide),
}Expand description
A grid track size (grid-template-columns/-rows).
Variants§
Px(f32)
Fr(f32)
Auto
MinMax(TrackSide, TrackSide)
minmax(min, max). Its whole point over a bare 1fr is a 0 (or px)
minimum, which lets the track shrink below its content’s min-content,
so a grid of fixed-size cards squeezes to fit instead of overflowing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Track
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnsafeUnpin for Track
impl UnwindSafe for Track
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