pub enum Step {
Hair,
Tight,
Snug,
Base,
Roomy,
Wide,
Loose,
Broad,
Vast,
Colossal,
}Expand description
A raw step on the underlying scale.
Present because not every distance is a relationship between two controls —
an optical nudge inside a badge is not a Gap. Prefer Gap wherever one
fits: a step name says how big, a gap name says why.
Variants§
Hair
An eighth of the base. Optical nudges inside small inline elements.
Tight
A quarter of the base.
Snug
Three eighths of the base.
Base
Half the base.
Roomy
Five eighths of the base.
Wide
Three quarters of the base.
Loose
The base itself.
Broad
One and a half times the base.
Vast
Twice the base.
Colossal
Three times the base.
Implementations§
Trait Implementations§
impl Copy for Step
impl Eq for Step
Source§impl Ord for Step
impl Ord for Step
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 PartialOrd for Step
impl PartialOrd for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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