pub enum SpacingStep {
None,
Xs,
Sm,
Md,
Lg,
Xl,
Xxl,
Custom(u32),
}Expand description
A named or numeric spacing step.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SpacingStep
impl Clone for SpacingStep
Source§fn clone(&self) -> SpacingStep
fn clone(&self) -> SpacingStep
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 moreSource§impl Debug for SpacingStep
impl Debug for SpacingStep
Source§impl Hash for SpacingStep
impl Hash for SpacingStep
Source§impl Ord for SpacingStep
impl Ord for SpacingStep
Source§fn cmp(&self, other: &SpacingStep) -> Ordering
fn cmp(&self, other: &SpacingStep) -> Ordering
1.21.0 (const: unstable) · 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 SpacingStep
impl PartialEq for SpacingStep
Source§fn eq(&self, other: &SpacingStep) -> bool
fn eq(&self, other: &SpacingStep) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SpacingStep
impl PartialOrd for SpacingStep
impl Copy for SpacingStep
impl Eq for SpacingStep
impl StructuralPartialEq for SpacingStep
Auto Trait Implementations§
impl Freeze for SpacingStep
impl RefUnwindSafe for SpacingStep
impl Send for SpacingStep
impl Sync for SpacingStep
impl Unpin for SpacingStep
impl UnsafeUnpin for SpacingStep
impl UnwindSafe for SpacingStep
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