pub struct PaperSize {
pub width: f64,
pub height: f64,
pub unit: Unit,
}
Expand description
The size of a piece of paper.
Fields§
§width: f64
The paper’s width, in unit.
height: f64
The paper’s height (or length), in unit.
unit: Unit
Implementations§
Trait Implementations§
impl Copy for PaperSize
impl StructuralPartialEq for PaperSize
Auto Trait Implementations§
impl Freeze for PaperSize
impl RefUnwindSafe for PaperSize
impl Send for PaperSize
impl Sync for PaperSize
impl Unpin for PaperSize
impl UnwindSafe for PaperSize
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