pub struct Image<'a, ImageElementData> {
pub background_color: Color,
pub corner_radii: CornerRadii,
pub data: &'a ImageElementData,
}Expand description
Represents an image with defined dimensions and data.
Fields§
§background_color: ColorBackground color
corner_radii: CornerRadiiThe corner radii for rounded border edges.
data: &'a ImageElementDataA pointer to the image data.
Trait Implementations§
Auto Trait Implementations§
impl<'a, ImageElementData> Freeze for Image<'a, ImageElementData>
impl<'a, ImageElementData> RefUnwindSafe for Image<'a, ImageElementData>where
ImageElementData: RefUnwindSafe,
impl<'a, ImageElementData> Send for Image<'a, ImageElementData>where
ImageElementData: Sync,
impl<'a, ImageElementData> Sync for Image<'a, ImageElementData>where
ImageElementData: Sync,
impl<'a, ImageElementData> Unpin for Image<'a, ImageElementData>
impl<'a, ImageElementData> UnwindSafe for Image<'a, ImageElementData>where
ImageElementData: 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