pub enum SizeMetric {
Px,
Pt,
Em,
Percent,
}
Expand description
Enum representing the metric associated with a number (px, pt, em, etc.)
Variants§
Trait Implementations§
Source§impl Clone for SizeMetric
impl Clone for SizeMetric
Source§fn clone(&self) -> SizeMetric
fn clone(&self) -> SizeMetric
Returns a copy of the value. Read more
1.0.0 · 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 SizeMetric
impl Debug for SizeMetric
Source§impl Default for SizeMetric
impl Default for SizeMetric
Source§impl Display for SizeMetric
impl Display for SizeMetric
Source§impl Hash for SizeMetric
impl Hash for SizeMetric
Source§impl Ord for SizeMetric
impl Ord for SizeMetric
Source§fn cmp(&self, other: &SizeMetric) -> Ordering
fn cmp(&self, other: &SizeMetric) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SizeMetric
impl PartialEq for SizeMetric
Source§impl PartialOrd for SizeMetric
impl PartialOrd for SizeMetric
impl Copy for SizeMetric
impl Eq for SizeMetric
impl StructuralPartialEq for SizeMetric
Auto Trait Implementations§
impl Freeze for SizeMetric
impl RefUnwindSafe for SizeMetric
impl Send for SizeMetric
impl Sync for SizeMetric
impl Unpin for SizeMetric
impl UnwindSafe for SizeMetric
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)