pub struct Rectangle {
pub color: Color,
pub corner_radii: CornerRadii,
}Expand description
Represents a rectangle with a specified color and corner radii.
Fields§
§color: ColorThe fill color of the rectangle.
corner_radii: CornerRadiiThe corner radii for rounded edges.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnsafeUnpin for Rectangle
impl UnwindSafe for Rectangle
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