pub enum GridTrackSize {
Auto,
MinContent,
MaxContent,
Px(f32),
Percent(f32),
Fr(f32),
}Expand description
One end of a CSS grid track’s sizing function — the a or the b in
minmax(a, b).
This is the full set taffy can express for a definite track. fit-content()
and calc() are absent: the first has no caller and the second is resolved
before it reaches here.
Variants§
Auto
auto
MinContent
min-content
MaxContent
max-content
Px(f32)
An absolute length, in logical pixels.
Percent(f32)
A percentage of the container’s track-axis size, as a FRACTION (50%
is 0.5) — taffy’s unit, not CSS’s.
Fr(f32)
<flex> — 1fr is Fr(1.0). Only valid as the MAX of a track; a fr
minimum is invalid CSS and is normalised to Auto by the caller.
Trait Implementations§
Source§impl Clone for GridTrackSize
impl Clone for GridTrackSize
impl Copy for GridTrackSize
Source§impl Debug for GridTrackSize
impl Debug for GridTrackSize
Source§impl Default for GridTrackSize
impl Default for GridTrackSize
Source§impl<'de> Deserialize<'de> for GridTrackSize
impl<'de> Deserialize<'de> for GridTrackSize
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GridTrackSize
impl PartialEq for GridTrackSize
Source§impl Serialize for GridTrackSize
impl Serialize for GridTrackSize
impl StructuralPartialEq for GridTrackSize
Auto Trait Implementations§
impl Forget for GridTrackSize
impl Freeze for GridTrackSize
impl Move for GridTrackSize
impl RefUnwindSafe for GridTrackSize
impl Send for GridTrackSize
impl Sync for GridTrackSize
impl Unpin for GridTrackSize
impl UnsafeUnpin for GridTrackSize
impl UnwindSafe for GridTrackSize
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more