pub struct BorderTokens {
pub width: f32,
pub width_emphasis: f32,
pub radius_sm: f32,
pub radius_md: f32,
pub radius_lg: f32,
pub radius_full: f32,
}Expand description
Border design tokens returned by Theme::border_tokens.
Semantic border widths, radii, and style used across the UI.
Fields§
§width: f32Default border width in logical pixels (e.g. 1 px).
width_emphasis: f32Emphasis border width (e.g. focused outline, 2 px).
radius_sm: f32Small border radius (e.g. tags, 2 px).
radius_md: f32Medium border radius (e.g. cards, 4 px).
radius_lg: f32Large border radius (e.g. dialogs, 8 px).
radius_full: f32Fully rounded radius (pills, 9999 px).
Trait Implementations§
Source§impl Clone for BorderTokens
impl Clone for BorderTokens
Source§fn clone(&self) -> BorderTokens
fn clone(&self) -> BorderTokens
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 BorderTokens
Source§impl Debug for BorderTokens
impl Debug for BorderTokens
Source§impl PartialEq for BorderTokens
impl PartialEq for BorderTokens
Source§fn eq(&self, other: &BorderTokens) -> bool
fn eq(&self, other: &BorderTokens) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BorderTokens
Auto Trait Implementations§
impl Freeze for BorderTokens
impl RefUnwindSafe for BorderTokens
impl Send for BorderTokens
impl Sync for BorderTokens
impl Unpin for BorderTokens
impl UnsafeUnpin for BorderTokens
impl UnwindSafe for BorderTokens
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