pub enum ExpandedMaxTrackSizingFunction {
Length(f32),
Percent(f32),
Auto,
MinContent,
MaxContent,
FitContentPx(f32),
FitContentPercent(f32),
Fr(f32),
Calc(*const ()),
}Expand description
The expanded, non-compact representation of a MaxTrackSizingFunction.
Obtained via MaxTrackSizingFunction::expand. Can be converted back into a
MaxTrackSizingFunction using the From implementation.
Variants§
Length(f32)
An absolute length (see MaxTrackSizingFunction::length)
Percent(f32)
A percentage length (see MaxTrackSizingFunction::percent)
Auto
The automatic keyword (see MaxTrackSizingFunction::auto)
MinContent
The min-content keyword (see MaxTrackSizingFunction::min_content)
MaxContent
The max-content keyword (see MaxTrackSizingFunction::max_content)
FitContentPx(f32)
A fit-content(...) value with a length limit (see MaxTrackSizingFunction::fit_content_px)
FitContentPercent(f32)
A fit-content(...) value with a percentage limit (see MaxTrackSizingFunction::fit_content_percent)
Fr(f32)
A fraction of the leftover space (see MaxTrackSizingFunction::fr)
Calc(*const ())
A calc() value (see MaxTrackSizingFunction::calc). The pointer is an opaque handle to
the calc representation, exactly as passed to the constructor.
Trait Implementations§
Source§impl Clone for ExpandedMaxTrackSizingFunction
impl Clone for ExpandedMaxTrackSizingFunction
Source§fn clone(&self) -> ExpandedMaxTrackSizingFunction
fn clone(&self) -> ExpandedMaxTrackSizingFunction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl From<ExpandedMaxTrackSizingFunction> for MaxTrackSizingFunction
impl From<ExpandedMaxTrackSizingFunction> for MaxTrackSizingFunction
Source§fn from(value: ExpandedMaxTrackSizingFunction) -> Self
fn from(value: ExpandedMaxTrackSizingFunction) -> Self
Source§impl From<MaxTrackSizingFunction> for ExpandedMaxTrackSizingFunction
impl From<MaxTrackSizingFunction> for ExpandedMaxTrackSizingFunction
Source§fn from(value: MaxTrackSizingFunction) -> Self
fn from(value: MaxTrackSizingFunction) -> Self
Source§impl PartialEq for ExpandedMaxTrackSizingFunction
impl PartialEq for ExpandedMaxTrackSizingFunction
Source§fn eq(&self, other: &ExpandedMaxTrackSizingFunction) -> bool
fn eq(&self, other: &ExpandedMaxTrackSizingFunction) -> bool
self and other values to be equal, and is used by ==.