pub enum LengthPercentage {
Length(Length),
Percent(f32),
}Expand description
A length or a percentage.
Variants§
Trait Implementations§
Source§impl Clone for LengthPercentage
impl Clone for LengthPercentage
Source§fn clone(&self) -> LengthPercentage
fn clone(&self) -> LengthPercentage
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 LengthPercentage
Source§impl Debug for LengthPercentage
impl Debug for LengthPercentage
Source§impl PartialEq for LengthPercentage
impl PartialEq for LengthPercentage
Source§fn eq(&self, other: &LengthPercentage) -> bool
fn eq(&self, other: &LengthPercentage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LengthPercentage
Auto Trait Implementations§
impl Freeze for LengthPercentage
impl RefUnwindSafe for LengthPercentage
impl Send for LengthPercentage
impl Sync for LengthPercentage
impl Unpin for LengthPercentage
impl UnsafeUnpin for LengthPercentage
impl UnwindSafe for LengthPercentage
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