pub struct RenderedImage {
pub bytes: Vec<u8>,
pub format: &'static str,
}Expand description
A validated original or a derived PNG thumbnail kept only in memory.
Rendering never changes the source bytes or writes a file. Thumbnails keep the aspect ratio, never enlarge the original and retain PNG sample depth.
Fields§
§bytes: Vec<u8>Original JPEG/PNG bytes, or a losslessly encoded PNG thumbnail.
format: &'static strValidated container, either jpg or png.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderedImage
impl RefUnwindSafe for RenderedImage
impl Send for RenderedImage
impl Sync for RenderedImage
impl Unpin for RenderedImage
impl UnwindSafe for RenderedImage
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