pub struct PaddingTokens {
pub compact: Padding,
pub control: Padding,
pub card: Padding,
pub page: Padding,
}Expand description
Padding design tokens returned by Theme::padding_tokens.
Semantic padding presets for common widget types.
Fields§
§compact: PaddingPadding for compact / icon-only controls (e.g. icon button).
control: PaddingPadding for standard interactive controls (e.g. button, input).
card: PaddingPadding for card / panel containers.
page: PaddingPadding for page / dialog content areas.
Trait Implementations§
Source§impl Clone for PaddingTokens
impl Clone for PaddingTokens
Source§fn clone(&self) -> PaddingTokens
fn clone(&self) -> PaddingTokens
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 moreimpl Copy for PaddingTokens
Source§impl Debug for PaddingTokens
impl Debug for PaddingTokens
Source§impl Default for PaddingTokens
impl Default for PaddingTokens
Source§impl PartialEq for PaddingTokens
impl PartialEq for PaddingTokens
Source§fn eq(&self, other: &PaddingTokens) -> bool
fn eq(&self, other: &PaddingTokens) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PaddingTokens
Auto Trait Implementations§
impl Freeze for PaddingTokens
impl RefUnwindSafe for PaddingTokens
impl Send for PaddingTokens
impl Sync for PaddingTokens
impl Unpin for PaddingTokens
impl UnsafeUnpin for PaddingTokens
impl UnwindSafe for PaddingTokens
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more