pub struct BorderRadius {
pub none: f32,
pub sm: f32,
pub md: f32,
pub lg: f32,
pub xl: f32,
pub full: f32,
}Expand description
Named corner radii in logical pixels.
Fields§
§none: f32No rounding (0 px).
sm: f32Small rounding (4 px).
md: f32Medium rounding (8 px).
lg: f32Large rounding (12 px).
xl: f32Extra-large rounding (16 px).
full: f32Full pill shape (9999 px).
Trait Implementations§
Source§impl Clone for BorderRadius
impl Clone for BorderRadius
Source§fn clone(&self) -> BorderRadius
fn clone(&self) -> BorderRadius
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 BorderRadius
Source§impl Debug for BorderRadius
impl Debug for BorderRadius
Auto Trait Implementations§
impl Freeze for BorderRadius
impl RefUnwindSafe for BorderRadius
impl Send for BorderRadius
impl Sync for BorderRadius
impl Unpin for BorderRadius
impl UnsafeUnpin for BorderRadius
impl UnwindSafe for BorderRadius
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