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