pub enum SpacingStep {
Show 15 variants
S0,
S0_5,
S1,
S1_5,
S2,
S3,
S4,
S5,
S6,
S7,
S8,
S9,
S10,
S11,
S12,
}Expand description
间距档位。Astryx 是 --spacing-0 … --spacing-12(每档 0.25rem = 4px),
外加 --spacing-0-5 / --spacing-1-5 两个半步。
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SpacingStep
impl Clone for SpacingStep
impl Copy for SpacingStep
Source§impl Debug for SpacingStep
impl Debug for SpacingStep
impl Eq for SpacingStep
Source§impl Hash for SpacingStep
impl Hash for SpacingStep
Source§impl Ord for SpacingStep
impl Ord for SpacingStep
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SpacingStep
impl PartialEq for SpacingStep
Source§impl PartialOrd for SpacingStep
impl PartialOrd for SpacingStep
impl StructuralPartialEq for SpacingStep
Auto Trait Implementations§
impl Forget for SpacingStep
impl Freeze for SpacingStep
impl Move 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