pub enum SicImage {
Animated(AnimatedImage),
Static(DynamicImage),
}
Expand description
The fundamental image data structure in sic
.
An image can either be animated, in which case it consists of a collection of image::Frame
frames,
or static, in which case it’s represented as an image::DynamicImage
.
Variants§
Animated(AnimatedImage)
Static(DynamicImage)
Trait Implementations§
source§impl From<DynamicImage> for SicImage
impl From<DynamicImage> for SicImage
source§fn from(item: DynamicImage) -> Self
fn from(item: DynamicImage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SicImage
impl Send for SicImage
impl Sync for SicImage
impl Unpin for SicImage
impl UnwindSafe for SicImage
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