pub struct Image {
pub background_color: Color,
pub corner_radii: CornerRadii,
pub data: ImageSource,
}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: ImageSourceA reference to the image source data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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