pub enum ImageKind {
JPEG(Arc<Vec<u8>>),
PNG(Arc<Vec<u8>>),
GIF(Arc<Vec<u8>>),
SVG(Tree),
}
Expand description
An embedded image kind.
Variants§
JPEG(Arc<Vec<u8>>)
A reference to raw JPEG data. Should be decoded by the caller.
PNG(Arc<Vec<u8>>)
A reference to raw PNG data. Should be decoded by the caller.
GIF(Arc<Vec<u8>>)
A reference to raw GIF data. Should be decoded by the caller.
SVG(Tree)
A preprocessed SVG tree. Can be rendered as is.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ImageKind
impl !Send for ImageKind
impl !Sync for ImageKind
impl Unpin for ImageKind
impl !UnwindSafe for ImageKind
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