Struct usvgr::PreloadedImageData
source · [−]pub struct PreloadedImageData {
pub data: Vec<u8>,
pub width: u32,
pub height: u32,
pub mime: String,
}Expand description
Use this struct to preload, decode and cache images for the upcoming rendering.
Fields
data: Vec<u8>The decoded image data. Make sure that if you submit the data directly it must be blended for semi transparent colors.
width: u32The width of image in pixels
height: u32The height of image in pixels
mime: StringThe image mime type (png/jpg)
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PreloadedImageData
impl Send for PreloadedImageData
impl Sync for PreloadedImageData
impl Unpin for PreloadedImageData
impl UnwindSafe for PreloadedImageData
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