pub enum CornerRole {
Show 15 variants
None,
ExtraSmall,
ExtraSmallTop,
Small,
Medium,
Large,
LargeStart,
LargeEnd,
LargeTop,
LargeIncreased,
ExtraLarge,
ExtraLargeTop,
ExtraLargeIncreased,
ExtraExtraLarge,
Full,
}Expand description
Semantic Material 3 corner-radius scale tokens.
Variants§
None
Sharp corners (0 dp).
ExtraSmall
Extra-small uniform rounding (4 dp).
ExtraSmallTop
Extra-small rounding on the top corners only (4 dp top, 0 dp bottom).
Small
Small uniform rounding (8 dp).
Medium
Medium uniform rounding (12 dp).
Large
Large uniform rounding (16 dp).
LargeStart
Large rounding on the logical start corners only.
LargeEnd
Large rounding on the logical end corners only.
LargeTop
Large rounding on the top corners only.
LargeIncreased
Increased large uniform rounding (20 dp).
ExtraLarge
Extra-large uniform rounding (28 dp).
ExtraLargeTop
Extra-large rounding on the top corners only.
ExtraLargeIncreased
Increased extra-large uniform rounding (32 dp).
ExtraExtraLarge
Extra-extra-large uniform rounding (48 dp).
Full
Full pill/circle rounding.
Implementations§
Source§impl CornerRole
impl CornerRole
Sourcepub const fn shape(self) -> CornerShape
pub const fn shape(self) -> CornerShape
Resolves this corner role to its Material CornerShape token value.
Trait Implementations§
Source§impl Clone for CornerRole
impl Clone for CornerRole
impl Copy for CornerRole
Source§impl Debug for CornerRole
impl Debug for CornerRole
impl Eq for CornerRole
Source§impl PartialEq for CornerRole
impl PartialEq for CornerRole
impl StructuralPartialEq for CornerRole
Auto Trait Implementations§
impl Forget for CornerRole
impl Freeze for CornerRole
impl Move for CornerRole
impl RefUnwindSafe for CornerRole
impl Send for CornerRole
impl Sync for CornerRole
impl Unpin for CornerRole
impl UnsafeUnpin for CornerRole
impl UnwindSafe for CornerRole
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.