pub struct Rectangle {
pub color: Color,
pub corner_radius: CornerRadius,
}Fields§
§color: Color§corner_radius: CornerRadiusImplementations§
Source§impl Rectangle
impl Rectangle
pub fn new() -> Self
pub fn color(&mut self, color: Color) -> &mut Self
pub fn corner_radius(&mut self, corner_radius: CornerRadius) -> &mut Self
pub fn end(&self) -> TypedConfig
Trait Implementations§
Source§impl From<Clay_RectangleElementConfig> for Rectangle
impl From<Clay_RectangleElementConfig> for Rectangle
Source§fn from(value: Clay_RectangleElementConfig) -> Self
fn from(value: Clay_RectangleElementConfig) -> Self
Converts to this type from the input type.
Source§impl From<Rectangle> for Clay_RectangleElementConfig
impl From<Rectangle> for Clay_RectangleElementConfig
impl Copy for Rectangle
Auto Trait Implementations§
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin 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