pub struct ThemeSpacing {
pub xxs: Option<f32>,
pub xs: Option<f32>,
pub s: Option<f32>,
pub m: Option<f32>,
pub l: Option<f32>,
pub xl: Option<f32>,
pub xxl: Option<f32>,
}Expand description
Named spacing scale from extra-extra-small to extra-extra-large.
All values are in logical pixels. The scale provides a consistent spacing vocabulary across platforms.
Fields§
§xxs: Option<f32>Extra-extra-small spacing (e.g., 2px).
xs: Option<f32>Extra-small spacing (e.g., 4px).
s: Option<f32>Small spacing (e.g., 8px).
m: Option<f32>Medium spacing (e.g., 12px).
l: Option<f32>Large spacing (e.g., 16px).
xl: Option<f32>Extra-large spacing (e.g., 24px).
xxl: Option<f32>Extra-extra-large spacing (e.g., 32px).
Implementations§
Source§impl ThemeSpacing
impl ThemeSpacing
Trait Implementations§
Source§impl Clone for ThemeSpacing
impl Clone for ThemeSpacing
Source§fn clone(&self) -> ThemeSpacing
fn clone(&self) -> ThemeSpacing
Returns a duplicate 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 ThemeSpacing
impl Debug for ThemeSpacing
Source§impl Default for ThemeSpacing
impl Default for ThemeSpacing
Source§fn default() -> ThemeSpacing
fn default() -> ThemeSpacing
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThemeSpacingwhere
ThemeSpacing: Default,
impl<'de> Deserialize<'de> for ThemeSpacingwhere
ThemeSpacing: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThemeSpacing
impl PartialEq for ThemeSpacing
Source§impl Serialize for ThemeSpacing
impl Serialize for ThemeSpacing
impl StructuralPartialEq for ThemeSpacing
Auto Trait Implementations§
impl Freeze for ThemeSpacing
impl RefUnwindSafe for ThemeSpacing
impl Send for ThemeSpacing
impl Sync for ThemeSpacing
impl Unpin for ThemeSpacing
impl UnsafeUnpin for ThemeSpacing
impl UnwindSafe for ThemeSpacing
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