pub enum TrackSizeSpec {
Fixed(f32),
Auto,
Fr(f32),
MinContent,
MaxContent,
MinMax(Box<TrackSizeSpec>, Box<TrackSizeSpec>),
}Expand description
One CSS Grid track-size term (W5.9). IR-side mirror of
lumen_core::components::TrackSize.
Variants§
Fixed(f32)
<N>px.
Auto
auto.
Fr(f32)
<N>fr.
MinContent
min-content.
MaxContent
max-content.
MinMax(Box<TrackSizeSpec>, Box<TrackSizeSpec>)
minmax(<min>, <max>).
Trait Implementations§
Source§impl Clone for TrackSizeSpec
impl Clone for TrackSizeSpec
Source§fn clone(&self) -> TrackSizeSpec
fn clone(&self) -> TrackSizeSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TrackSizeSpec
impl Debug for TrackSizeSpec
Source§impl<'de> Deserialize<'de> for TrackSizeSpec
impl<'de> Deserialize<'de> for TrackSizeSpec
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 From<&TrackSizeSpec> for TrackSize
impl From<&TrackSizeSpec> for TrackSize
Source§fn from(t: &TrackSizeSpec) -> Self
fn from(t: &TrackSizeSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TrackSizeSpec
impl PartialEq for TrackSizeSpec
Source§fn eq(&self, other: &TrackSizeSpec) -> bool
fn eq(&self, other: &TrackSizeSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TrackSizeSpec
impl Serialize for TrackSizeSpec
impl StructuralPartialEq for TrackSizeSpec
Auto Trait Implementations§
impl Freeze for TrackSizeSpec
impl RefUnwindSafe for TrackSizeSpec
impl Send for TrackSizeSpec
impl Sync for TrackSizeSpec
impl Unpin for TrackSizeSpec
impl UnsafeUnpin for TrackSizeSpec
impl UnwindSafe for TrackSizeSpec
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.