pub struct PxDensity(/* private fields */);Expand description
Measurement of pixels in a screen or points in print.
Internally the density is stored as pixels per centimeter.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PxDensity
impl<'de> Deserialize<'de> for PxDensity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for PxDensity
Parses "##", "##unit" and "##.unit()" where ## is a f32 and unit is ppi, dpi or ppcm. When
no unit is given assumes DPI.
impl FromStr for PxDensity
Parses "##", "##unit" and "##.unit()" where ## is a f32 and unit is ppi, dpi or ppcm. When
no unit is given assumes DPI.
Source§impl Ord for PxDensity
impl Ord for PxDensity
Source§impl PartialOrd for PxDensity
impl PartialOrd for PxDensity
impl Copy for PxDensity
impl Eq for PxDensity
Auto Trait Implementations§
impl Freeze for PxDensity
impl RefUnwindSafe for PxDensity
impl Send for PxDensity
impl Sync for PxDensity
impl Unpin for PxDensity
impl UnwindSafe for PxDensity
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