pub struct ImageContent {
pub data: Vec<u8>,
pub format: ImageFormat,
pub width: u32,
pub height: u32,
}Expand description
Extracted image content (raw bytes) from a PDF image XObject.
Fields§
§data: Vec<u8>The image data bytes.
format: ImageFormatThe format of the image data.
width: u32Image width in pixels.
height: u32Image height in pixels.
Trait Implementations§
Source§impl Clone for ImageContent
impl Clone for ImageContent
Source§fn clone(&self) -> ImageContent
fn clone(&self) -> ImageContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageContent
impl Debug for ImageContent
Source§impl PartialEq for ImageContent
impl PartialEq for ImageContent
impl StructuralPartialEq for ImageContent
Auto Trait Implementations§
impl Freeze for ImageContent
impl RefUnwindSafe for ImageContent
impl Send for ImageContent
impl Sync for ImageContent
impl Unpin for ImageContent
impl UnsafeUnpin for ImageContent
impl UnwindSafe for ImageContent
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