Type Alias taffy::style::NonRepeatedTrackSizingFunction
source · 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 into 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