pub struct Custom<'a, CustomElementData> {
pub background_color: Color,
pub corner_radii: CornerRadii,
pub data: &'a 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: &'a CustomElementDataA pointer to additional custom data.
Trait Implementations§
Auto Trait Implementations§
impl<'a, CustomElementData> Freeze for Custom<'a, CustomElementData>
impl<'a, CustomElementData> RefUnwindSafe for Custom<'a, CustomElementData>where
CustomElementData: RefUnwindSafe,
impl<'a, CustomElementData> Send for Custom<'a, CustomElementData>where
CustomElementData: Sync,
impl<'a, CustomElementData> Sync for Custom<'a, CustomElementData>where
CustomElementData: Sync,
impl<'a, CustomElementData> Unpin for Custom<'a, CustomElementData>
impl<'a, CustomElementData> UnwindSafe for Custom<'a, CustomElementData>where
CustomElementData: RefUnwindSafe,
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