#[repr(C, u8)]pub enum GridTrackSizing {
Fixed(PixelValue),
Fr(i32),
MinContent,
MaxContent,
Auto,
MinMax(GridMinMax),
FitContent(PixelValue),
}Expand description
Represents a single track sizing function for grid
Variants§
Fixed(PixelValue)
Fixed pixel/percent size
Fr(i32)
fr units (stored as integer to satisfy Eq/Ord/Hash)
MinContent
min-content
MaxContent
max-content
Auto
auto
MinMax(GridMinMax)
minmax(min, max) - uses GridMinMax which contains Box
FitContent(PixelValue)
fit-content(size)
Trait Implementations§
Source§impl Clone for GridTrackSizing
impl Clone for GridTrackSizing
Source§fn clone(&self) -> GridTrackSizing
fn clone(&self) -> GridTrackSizing
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GridTrackSizing
impl Debug for GridTrackSizing
Source§impl Default for GridTrackSizing
impl Default for GridTrackSizing
Source§impl Extend<GridTrackSizing> for GridTrackSizingVec
impl Extend<GridTrackSizing> for GridTrackSizingVec
Source§fn extend<T: IntoIterator<Item = GridTrackSizing>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = GridTrackSizing>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FormatAsRustCode for GridTrackSizing
impl FormatAsRustCode for GridTrackSizing
fn format_as_rust_code(&self, tabs: usize) -> String
Source§impl FromIterator<GridTrackSizing> for GridTrackSizingVec
impl FromIterator<GridTrackSizing> for GridTrackSizingVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = GridTrackSizing>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = GridTrackSizing>,
Creates a value from an iterator. Read more
Source§impl Hash for GridTrackSizing
impl Hash for GridTrackSizing
Source§impl Ord for GridTrackSizing
impl Ord for GridTrackSizing
Source§fn cmp(&self, other: &GridTrackSizing) -> Ordering
fn cmp(&self, other: &GridTrackSizing) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GridTrackSizing
impl PartialEq for GridTrackSizing
Source§impl PartialOrd for GridTrackSizing
impl PartialOrd for GridTrackSizing
Source§impl PrintAsCssValue for GridTrackSizing
impl PrintAsCssValue for GridTrackSizing
fn print_as_css_value(&self) -> String
impl Eq for GridTrackSizing
impl StructuralPartialEq for GridTrackSizing
Auto Trait Implementations§
impl Freeze for GridTrackSizing
impl RefUnwindSafe for GridTrackSizing
impl Send for GridTrackSizing
impl Sync for GridTrackSizing
impl Unpin for GridTrackSizing
impl UnwindSafe for GridTrackSizing
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