pub enum EuvSpaceSize {
Xs,
Sm,
Md,
Lg,
Xl,
}Expand description
The spacing step of the euv_space component.
Each step maps to a design token rather than a hardcoded pixel value, so the gap follows the theme’s spacing scale.
Variants§
Xs
The tightest step, for separating an icon from its label.
Sm
A small step, for list items and inline groups.
Md
The default step, for sibling blocks inside a section.
Lg
A large step, for separating section groups.
Xl
The largest step, for separating top-level page regions.
Implementations§
Source§impl EuvSpaceSize
impl EuvSpaceSize
Sourcepub fn token(&self) -> &'static str
pub fn token(&self) -> &'static str
Returns the name of the design token backing this step.
The returned name is the token key without the -- prefix, ready to be
passed to var!; the caller resolves it to a var(--token)
reference rather than hardcoding a pixel value.
§Returns
&'static str- The design token name:space-xs,space-sm,space-md,space-lg, orspace-xl.
Trait Implementations§
Source§impl Clone for EuvSpaceSize
impl Clone for EuvSpaceSize
impl Copy for EuvSpaceSize
Source§impl Debug for EuvSpaceSize
impl Debug for EuvSpaceSize
Source§impl Default for EuvSpaceSize
impl Default for EuvSpaceSize
impl Eq for EuvSpaceSize
Source§impl Hash for EuvSpaceSize
impl Hash for EuvSpaceSize
Source§impl Ord for EuvSpaceSize
impl Ord for EuvSpaceSize
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 EuvSpaceSize
impl PartialEq for EuvSpaceSize
Source§impl PartialOrd for EuvSpaceSize
impl PartialOrd for EuvSpaceSize
impl StructuralPartialEq for EuvSpaceSize
Auto Trait Implementations§
impl Freeze for EuvSpaceSize
impl RefUnwindSafe for EuvSpaceSize
impl Send for EuvSpaceSize
impl Sync for EuvSpaceSize
impl Unpin for EuvSpaceSize
impl UnsafeUnpin for EuvSpaceSize
impl UnwindSafe for EuvSpaceSize
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