Expand description
A raster image container.
Variants
Path(PathBuf)
Path to a PNG, JPEG or SVG(Z) image.
Preprocessor will check that the file exist, but because it can be removed later, so there is no guarantee that this path is valid.
The path may be relative.
Raw(Vec<u8>)
Image raw data.
It’s not a decoded image data, but the data that was decoded from base64. So you still need a PNG, JPEG and SVG(Z) decoding libraries.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnwindSafe for ImageData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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