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