pub struct ImageResource {
pub path: PathBuf,
pub name: String,
pub info: Info,
pub page: u32,
pub page_box: PageBox,
pub attr: Vec<u8>,
pub size: (i32, i32, i32),
pub natural: (i32, i32),
pub obj: i32,
pub written: bool,
}Expand description
A saved image resource.
Fields§
§path: PathBufThe file as found.
name: StringThe name as given (for messages).
info: InfoWhat the file says about itself.
page: u32The page (PDF), 1-based.
page_box: PageBoxThe page box (PDF).
attr: Vec<u8>Extra entries for the image dictionary (attr {…}).
size: (i32, i32, i32)Size as saved: width, height, depth.
natural: (i32, i32)Natural size: width, height.
obj: i32The PDF object number reserved for the image.
written: boolWhether it has been written (and its name printed).
Trait Implementations§
Source§impl Clone for ImageResource
impl Clone for ImageResource
Auto Trait Implementations§
impl Freeze for ImageResource
impl RefUnwindSafe for ImageResource
impl Send for ImageResource
impl Sync for ImageResource
impl Unpin for ImageResource
impl UnsafeUnpin for ImageResource
impl UnwindSafe for ImageResource
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