pub enum TrackSizingFunction {
Single(NonRepeatedTrackSizingFunction),
Repeat(GridTrackRepetition, Vec<NonRepeatedTrackSizingFunction>),
}
Expand description
The sizing function for a grid track (row/column) See https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns
Variants§
Single(NonRepeatedTrackSizingFunction)
A single non-repeated track
Repeat(GridTrackRepetition, Vec<NonRepeatedTrackSizingFunction>)
Automatically generate grid tracks to fit the available space using the specified definite track lengths Only valid if every track in template (not just the repitition) has a fixed size.
Implementations§
source§impl TrackSizingFunction
impl TrackSizingFunction
sourcepub fn is_auto_repetition(&self) -> bool
pub fn is_auto_repetition(&self) -> bool
Whether the track definition is a auto-repeated fragment
Trait Implementations§
source§impl Clone for TrackSizingFunction
impl Clone for TrackSizingFunction
source§fn clone(&self) -> TrackSizingFunction
fn clone(&self) -> TrackSizingFunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TrackSizingFunction
impl Debug for TrackSizingFunction
source§impl From<MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>> for TrackSizingFunction
impl From<MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>> for TrackSizingFunction
source§fn from(input: MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>) -> Self
fn from(input: MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>) -> Self
Converts to this type from the input type.
source§impl FromFlex for TrackSizingFunction
impl FromFlex for TrackSizingFunction
source§impl FromLength for TrackSizingFunction
impl FromLength for TrackSizingFunction
source§impl FromPercent for TrackSizingFunction
impl FromPercent for TrackSizingFunction
source§impl PartialEq for TrackSizingFunction
impl PartialEq for TrackSizingFunction
source§impl TaffyAuto for TrackSizingFunction
impl TaffyAuto for TrackSizingFunction
source§impl TaffyFitContent for TrackSizingFunction
impl TaffyFitContent for TrackSizingFunction
source§fn fit_content(argument: LengthPercentage) -> Self
fn fit_content(argument: LengthPercentage) -> Self
Converts a LengthPercentage into Self
source§impl TaffyMaxContent for TrackSizingFunction
impl TaffyMaxContent for TrackSizingFunction
source§const MAX_CONTENT: Self = _
const MAX_CONTENT: Self = _
The max_content value for type implementing TaffyZero
source§impl TaffyMinContent for TrackSizingFunction
impl TaffyMinContent for TrackSizingFunction
source§const MIN_CONTENT: Self = _
const MIN_CONTENT: Self = _
The min_content value for type implementing TaffyZero
source§impl TaffyZero for TrackSizingFunction
impl TaffyZero for TrackSizingFunction
impl StructuralPartialEq for TrackSizingFunction
Auto Trait Implementations§
impl Freeze for TrackSizingFunction
impl RefUnwindSafe for TrackSizingFunction
impl Send for TrackSizingFunction
impl Sync for TrackSizingFunction
impl Unpin for TrackSizingFunction
impl UnwindSafe for TrackSizingFunction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)