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
sourceimpl From<DynamicImage> for SicImage
impl From<DynamicImage> for SicImage
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more