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

source

pub fn min_sizing_function(&self) -> MinTrackSizingFunction

Extract the min track sizing function

source

pub fn max_sizing_function(&self) -> MaxTrackSizingFunction

Extract the max track sizing function

source

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 FromFlex for NonRepeatedTrackSizingFunction

source§

fn from_flex<Input: Into<f32> + Copy>(flex: Input) -> Self

Converts into an Into<f32> into Self
source§

impl FromPercent for NonRepeatedTrackSizingFunction

source§

fn from_percent<Input: Into<f32> + Copy>(percent: Input) -> Self

Converts into an Into<f32> into Self
source§

impl FromPoints for NonRepeatedTrackSizingFunction

source§

fn from_points<Input: Into<f32> + Copy>(points: Input) -> Self

Converts into an Into<f32> into Self
source§

impl TaffyAuto for NonRepeatedTrackSizingFunction

source§

const AUTO: Self = _

The auto value for type implementing TaffyZero
source§

impl TaffyFitContent for NonRepeatedTrackSizingFunction

source§

fn fit_content(argument: LengthPercentage) -> Self

Converts into a LengthPercentage into Self
source§

impl TaffyMaxContent for NonRepeatedTrackSizingFunction

source§

const MAX_CONTENT: Self = _

The max_content value for type implementing TaffyZero
source§

impl TaffyMinContent for NonRepeatedTrackSizingFunction

source§

const MIN_CONTENT: Self = _

The min_content value for type implementing TaffyZero
source§

impl TaffyZero for NonRepeatedTrackSizingFunction

source§

const ZERO: Self = _

The zero value for type implementing TaffyZero