pub struct Dpi(pub u16);Expand description
A render resolution, in whole dots per inch.
A newtype because asks for one on a unit-bearing scalar, and
because it is what lets Conversion keep Eq — a report a caller cannot
compare for equality is a report they cannot write a test against.
Tuple Fields§
§0: u16Trait Implementations§
impl Copy for Dpi
impl Eq for Dpi
Source§impl Ord for Dpi
impl Ord for Dpi
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Dpi
impl PartialOrd for Dpi
impl StructuralPartialEq for Dpi
Auto Trait Implementations§
impl Freeze for Dpi
impl RefUnwindSafe for Dpi
impl Send for Dpi
impl Sync for Dpi
impl Unpin for Dpi
impl UnsafeUnpin for Dpi
impl UnwindSafe for Dpi
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