pub enum ImageData {
Color(Arc<ColorImage>),
}
Expand description
An image stored in RAM.
To load an image file, see ColorImage::from_rgba_unmultiplied
.
This is currently an enum with only one variant, but more image types may be added in the future.
See also: ColorImage
.
Variants§
Color(Arc<ColorImage>)
RGBA image.
Implementations§
Trait Implementations§
Source§impl From<ColorImage> for ImageData
impl From<ColorImage> for ImageData
Source§fn from(image: ColorImage) -> ImageData
fn from(image: ColorImage) -> ImageData
Converts to this type from the input type.
impl Eq for ImageData
impl StructuralPartialEq for ImageData
Auto Trait Implementations§
impl Freeze for ImageData
impl RefUnwindSafe for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnwindSafe for ImageData
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