pub enum Image {
Empty,
Embedded {
format: ImageFormat,
bytes: &'static [u8],
size: [u32; 2],
},
Animated(&'static ImageAnimation),
Loaded(LoadedImage),
NineSliced {
format: ImageFormat,
bytes: &'static [u8],
size: [u32; 2],
edges: NineSlice,
},
}Variants§
Implementations§
Trait Implementations§
impl Eq for Image
Source§impl From<Image> for ImageAsset
impl From<Image> for ImageAsset
Auto Trait Implementations§
impl Forget for Image
impl Freeze for Image
impl Move 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