pub struct DevicePixelRatio(f32);Expand description
How many device pixels one CSS pixel is worth. Never zero or negative: a host that reports one is a host whose canvas would have no pixels.
Tuple Fields§
§0: f32Implementations§
Trait Implementations§
Source§impl Clone for DevicePixelRatio
impl Clone for DevicePixelRatio
Source§fn clone(&self) -> DevicePixelRatio
fn clone(&self) -> DevicePixelRatio
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DevicePixelRatio
impl Debug for DevicePixelRatio
Source§impl From<DevicePixelRatio> for f32
impl From<DevicePixelRatio> for f32
Source§fn from(ratio: DevicePixelRatio) -> Self
fn from(ratio: DevicePixelRatio) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DevicePixelRatio
impl PartialEq for DevicePixelRatio
impl Copy for DevicePixelRatio
impl StructuralPartialEq for DevicePixelRatio
Auto Trait Implementations§
impl Freeze for DevicePixelRatio
impl RefUnwindSafe for DevicePixelRatio
impl Send for DevicePixelRatio
impl Sync for DevicePixelRatio
impl Unpin for DevicePixelRatio
impl UnsafeUnpin for DevicePixelRatio
impl UnwindSafe for DevicePixelRatio
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