pub type NonRepeatedTrackSizingFunction = MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>;
Expand description
The sizing function for a grid track (row/column) (either auto-track or template track) May either be a MinMax variant which specifies separate values for the min-/max- track sizing functions or a scalar value which applies to both track sizing functions.
Aliased Type§
struct NonRepeatedTrackSizingFunction {
pub min: MinTrackSizingFunction,
pub max: MaxTrackSizingFunction,
}
Fields§
§min: MinTrackSizingFunction
The value representing the minimum
max: MaxTrackSizingFunction
The value representing the maximum
Implementations§
Source§impl NonRepeatedTrackSizingFunction
impl NonRepeatedTrackSizingFunction
Sourcepub fn min_sizing_function(&self) -> MinTrackSizingFunction
pub fn min_sizing_function(&self) -> MinTrackSizingFunction
Extract the min track sizing function
Sourcepub fn max_sizing_function(&self) -> MaxTrackSizingFunction
pub fn max_sizing_function(&self) -> MaxTrackSizingFunction
Extract the max track sizing function
Sourcepub fn has_fixed_component(&self) -> bool
pub fn has_fixed_component(&self) -> bool
Determine whether at least one of the components (“min” and “max”) are fixed sizing function
Trait Implementations§
Source§impl TaffyFitContent for NonRepeatedTrackSizingFunction
impl TaffyFitContent for NonRepeatedTrackSizingFunction
Source§fn fit_content(argument: LengthPercentage) -> Self
fn fit_content(argument: LengthPercentage) -> Self
Converts a LengthPercentage into Self
Source§impl TaffyMaxContent for NonRepeatedTrackSizingFunction
impl TaffyMaxContent for NonRepeatedTrackSizingFunction
Source§const MAX_CONTENT: Self
const MAX_CONTENT: Self
The max_content value for type implementing TaffyZero
Source§impl TaffyMinContent for NonRepeatedTrackSizingFunction
impl TaffyMinContent for NonRepeatedTrackSizingFunction
Source§const MIN_CONTENT: Self
const MIN_CONTENT: Self
The min_content value for type implementing TaffyZero