pub struct PageImageableSize {
pub size: MediaSizeTuple,
pub origin: MediaSizeTuple,
pub extent: MediaSizeTuple,
}Expand description
Represents a media size tuple.
Fields§
§size: MediaSizeTupleThe size of the page.
origin: MediaSizeTupleThe origin of the imageable area.
extent: MediaSizeTupleThe extent of the imageable area.
Implementations§
Source§impl PageImageableSize
impl PageImageableSize
Sourcepub fn try_fetch(
device: &PrinterDevice,
media: PageMediaSize,
) -> Result<Self, PageImageableSizeError>
pub fn try_fetch( device: &PrinterDevice, media: PageMediaSize, ) -> Result<Self, PageImageableSizeError>
Try to fetch the imageable size for the given printer device and media size.
Trait Implementations§
Source§impl Clone for PageImageableSize
impl Clone for PageImageableSize
Source§fn clone(&self) -> PageImageableSize
fn clone(&self) -> PageImageableSize
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 moreimpl Copy for PageImageableSize
Source§impl Debug for PageImageableSize
impl Debug for PageImageableSize
impl Eq for PageImageableSize
Source§impl Hash for PageImageableSize
impl Hash for PageImageableSize
Source§impl PartialEq for PageImageableSize
impl PartialEq for PageImageableSize
impl StructuralPartialEq for PageImageableSize
Auto Trait Implementations§
impl Freeze for PageImageableSize
impl RefUnwindSafe for PageImageableSize
impl Send for PageImageableSize
impl Sync for PageImageableSize
impl Unpin for PageImageableSize
impl UnsafeUnpin for PageImageableSize
impl UnwindSafe for PageImageableSize
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