pub struct ImageMetadata {
pub src_width: Option<u32>,
pub src_height: Option<u32>,
pub bits_per_component: Option<u32>,
pub color_space: Option<String>,
}Expand description
Metadata about an image XObject from the PDF resource dictionary.
Fields§
§src_width: Option<u32>Original pixel width of the image.
src_height: Option<u32>Original pixel height of the image.
bits_per_component: Option<u32>Bits per component (e.g., 8).
color_space: Option<String>Color space name (e.g., “DeviceRGB”, “DeviceGray”).
Trait Implementations§
Source§impl Clone for ImageMetadata
impl Clone for ImageMetadata
Source§fn clone(&self) -> ImageMetadata
fn clone(&self) -> ImageMetadata
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 ImageMetadata
impl Debug for ImageMetadata
Source§impl Default for ImageMetadata
impl Default for ImageMetadata
Source§fn default() -> ImageMetadata
fn default() -> ImageMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImageMetadata
impl PartialEq for ImageMetadata
impl StructuralPartialEq for ImageMetadata
Auto Trait Implementations§
impl Freeze for ImageMetadata
impl RefUnwindSafe for ImageMetadata
impl Send for ImageMetadata
impl Sync for ImageMetadata
impl Unpin for ImageMetadata
impl UnsafeUnpin for ImageMetadata
impl UnwindSafe for ImageMetadata
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