pub struct Custom<CustomElementData> {
pub background_color: Color,
pub corner_radii: CornerRadii,
pub data: CustomElementData,
}Expand description
Represents a custom element with a background color, corner radii, and associated data.
Fields§
§background_color: ColorThe background color of the custom element.
corner_radii: CornerRadiiThe corner radii for rounded edges.
data: CustomElementDataThe custom element data.
Trait Implementations§
Auto Trait Implementations§
impl<CustomElementData> Freeze for Custom<CustomElementData>where
CustomElementData: Freeze,
impl<CustomElementData> RefUnwindSafe for Custom<CustomElementData>where
CustomElementData: RefUnwindSafe,
impl<CustomElementData> Send for Custom<CustomElementData>where
CustomElementData: Send,
impl<CustomElementData> Sync for Custom<CustomElementData>where
CustomElementData: Sync,
impl<CustomElementData> Unpin for Custom<CustomElementData>where
CustomElementData: Unpin,
impl<CustomElementData> UnsafeUnpin for Custom<CustomElementData>where
CustomElementData: UnsafeUnpin,
impl<CustomElementData> UnwindSafe for Custom<CustomElementData>where
CustomElementData: UnwindSafe,
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