Trait zng_layout::unit::ResolutionUnits
source · pub trait ResolutionUnits {
// Required methods
fn ppi(self) -> Ppi;
fn ppm(self) -> Ppm;
// Provided method
fn dpi(self) -> Ppi
where Self: Sized { ... }
}
Expand description
Extension methods for initializing resolution units.
§Examples
use zng_layout::unit::*;
let ppm: Ppm = 96.dpi().into();