pub struct JobOptions {
pub width: u32,
pub height: u32,
pub bits_per_pixel: u32,
pub bytes_per_line: u32,
pub copies: u32,
}Expand description
Page geometry parsed from a CUPS/PWG raster page header.
Fields§
§width: u32Page width in pixels.
height: u32Page height in pixels.
bits_per_pixel: u32Bits per pixel (typically 1 for monochrome, 8 for grayscale, 24 for RGB).
bytes_per_line: u32Bytes per scanline (already pre-padded by the raster source).
copies: u32Number of copies requested. Always ≥ 1.
Implementations§
Source§impl JobOptions
impl JobOptions
Trait Implementations§
Source§impl Clone for JobOptions
impl Clone for JobOptions
Source§fn clone(&self) -> JobOptions
fn clone(&self) -> JobOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JobOptions
impl RefUnwindSafe for JobOptions
impl Send for JobOptions
impl Sync for JobOptions
impl Unpin for JobOptions
impl UnsafeUnpin for JobOptions
impl UnwindSafe for JobOptions
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