pub enum ExpandedMinTrackSizingFunction {
Length(f32),
Percent(f32),
Auto,
MinContent,
MaxContent,
Calc(*const ()),
}Expand description
The expanded, non-compact representation of a MinTrackSizingFunction.
Obtained via MinTrackSizingFunction::expand. Can be converted back into a
MinTrackSizingFunction using the From implementation.
Variants§
Length(f32)
An absolute length (see MinTrackSizingFunction::length)
Percent(f32)
A percentage length (see MinTrackSizingFunction::percent)
Auto
The automatic keyword (see MinTrackSizingFunction::auto)
MinContent
The min-content keyword (see MinTrackSizingFunction::min_content)
MaxContent
The max-content keyword (see MinTrackSizingFunction::max_content)
Calc(*const ())
A calc() value (see MinTrackSizingFunction::calc). The pointer is an opaque handle to
the calc representation, exactly as passed to the constructor.
Trait Implementations§
Source§impl Clone for ExpandedMinTrackSizingFunction
impl Clone for ExpandedMinTrackSizingFunction
Source§fn clone(&self) -> ExpandedMinTrackSizingFunction
fn clone(&self) -> ExpandedMinTrackSizingFunction
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 moreimpl Copy for ExpandedMinTrackSizingFunction
Source§impl From<ExpandedMinTrackSizingFunction> for MinTrackSizingFunction
impl From<ExpandedMinTrackSizingFunction> for MinTrackSizingFunction
Source§fn from(value: ExpandedMinTrackSizingFunction) -> Self
fn from(value: ExpandedMinTrackSizingFunction) -> Self
Converts to this type from the input type.
Source§impl From<MinTrackSizingFunction> for ExpandedMinTrackSizingFunction
impl From<MinTrackSizingFunction> for ExpandedMinTrackSizingFunction
Source§fn from(value: MinTrackSizingFunction) -> Self
fn from(value: MinTrackSizingFunction) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ExpandedMinTrackSizingFunction
Auto Trait Implementations§
impl !Send for ExpandedMinTrackSizingFunction
impl !Sync for ExpandedMinTrackSizingFunction
impl Freeze for ExpandedMinTrackSizingFunction
impl RefUnwindSafe for ExpandedMinTrackSizingFunction
impl Unpin for ExpandedMinTrackSizingFunction
impl UnsafeUnpin for ExpandedMinTrackSizingFunction
impl UnwindSafe for ExpandedMinTrackSizingFunction
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