pub struct RadiusToken(pub &'static str);Expand description
The name of a corner radius in a Theme.
A token is a name, not a value: the value comes from the theme that is current when the node paints.
Tuple Fields§
§0: &'static strThe token’s name, which themes key their radii by.
Implementations§
Source§impl RadiusToken
impl RadiusToken
Sourcepub const SMALL: RadiusToken
pub const SMALL: RadiusToken
A small radius, for chips and small controls.
Sourcepub const MEDIUM: RadiusToken
pub const MEDIUM: RadiusToken
A medium radius, for buttons and input fields.
Sourcepub const LARGE: RadiusToken
pub const LARGE: RadiusToken
A large radius, for cards and dialogs.
Trait Implementations§
Source§impl Clone for RadiusToken
impl Clone for RadiusToken
impl Copy for RadiusToken
Source§impl Debug for RadiusToken
impl Debug for RadiusToken
impl Eq for RadiusToken
Source§impl From<RadiusToken> for Value<RadiusValue>
impl From<RadiusToken> for Value<RadiusValue>
Source§fn from(token: RadiusToken) -> Value<RadiusValue>
fn from(token: RadiusToken) -> Value<RadiusValue>
Converts to this type from the input type.
Source§impl From<RadiusToken> for RadiusValue
impl From<RadiusToken> for RadiusValue
Source§fn from(token: RadiusToken) -> RadiusValue
fn from(token: RadiusToken) -> RadiusValue
Converts to this type from the input type.
Source§impl Hash for RadiusToken
impl Hash for RadiusToken
Source§impl PartialEq for RadiusToken
impl PartialEq for RadiusToken
impl StructuralPartialEq for RadiusToken
Auto Trait Implementations§
impl Forget for RadiusToken
impl Freeze for RadiusToken
impl Move for RadiusToken
impl RefUnwindSafe for RadiusToken
impl Send for RadiusToken
impl Sync for RadiusToken
impl Unpin for RadiusToken
impl UnsafeUnpin for RadiusToken
impl UnwindSafe for RadiusToken
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