taffy::style

Type Alias 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

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

Source§

fn from_length<Input: Into<f32> + Copy>(value: 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 TaffyAuto for NonRepeatedTrackSizingFunction

Source§

const AUTO: Self

The auto value for type implementing TaffyAuto
Source§

impl TaffyFitContent for NonRepeatedTrackSizingFunction

Source§

fn fit_content(argument: LengthPercentage) -> Self

Converts 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
Source§

impl<Min: Clone, Max: Clone> Clone for MinMax<Min, Max>

Source§

fn clone(&self) -> MinMax<Min, Max>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Min: Debug, Max: Debug> Debug for MinMax<Min, Max>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Min: PartialEq, Max: PartialEq> PartialEq for MinMax<Min, Max>

Source§

fn eq(&self, other: &MinMax<Min, Max>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Min: Copy, Max: Copy> Copy for MinMax<Min, Max>

Source§

impl<Min: Eq, Max: Eq> Eq for MinMax<Min, Max>

Source§

impl<Min, Max> StructuralPartialEq for MinMax<Min, Max>