pub struct Png(pub Vec<u8>);Expand description
Decoded preview bytes for an entry in Docx.images.
For raster originals (PNG / JPEG / BMP / GIF / TIFF) decoded via the
image crate, the contents are PNG bytes. Unsupported formats such as
EMF are surfaced with an empty preview so downstream consumers can
provide their own conversion. The struct is named Png for backwards
compatibility.
Tuple Fields§
§0: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Png
impl RefUnwindSafe for Png
impl Send for Png
impl Sync for Png
impl Unpin for Png
impl UnsafeUnpin for Png
impl UnwindSafe for Png
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