#[repr(transparent)]pub struct DevicePixels(pub i32);Expand description
Physical pixels of a display: what a platform’s bitmaps, swap chains
and pointer events in pixels count. NSH’s own values are Points;
conversions happen at the platform boundary, with the surface’s scale
factor.
Tuple Fields§
§0: i32Implementations§
Trait Implementations§
Source§impl Add for DevicePixels
impl Add for DevicePixels
Source§impl Clone for DevicePixels
impl Clone for DevicePixels
impl Copy for DevicePixels
Source§impl Debug for DevicePixels
impl Debug for DevicePixels
Source§impl Default for DevicePixels
impl Default for DevicePixels
Source§impl<'de> Deserialize<'de> for DevicePixels
impl<'de> Deserialize<'de> for DevicePixels
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
impl Eq for DevicePixels
Source§impl From<DevicePixels> for i32
impl From<DevicePixels> for i32
Source§fn from(v: DevicePixels) -> i32
fn from(v: DevicePixels) -> i32
Converts to this type from the input type.
Source§impl From<i32> for DevicePixels
impl From<i32> for DevicePixels
Source§impl Hash for DevicePixels
impl Hash for DevicePixels
Source§impl JsValue for DevicePixels
A whole number of pixels (an image’s size).
impl JsValue for DevicePixels
A whole number of pixels (an image’s size).
Source§impl Ord for DevicePixels
impl Ord for DevicePixels
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 PartialEq for DevicePixels
impl PartialEq for DevicePixels
Source§impl PartialOrd for DevicePixels
impl PartialOrd for DevicePixels
Source§impl Serialize for DevicePixels
impl Serialize for DevicePixels
impl StructuralPartialEq for DevicePixels
Auto Trait Implementations§
impl Forget for DevicePixels
impl Freeze for DevicePixels
impl Move for DevicePixels
impl RefUnwindSafe for DevicePixels
impl Send for DevicePixels
impl Sync for DevicePixels
impl Unpin for DevicePixels
impl UnsafeUnpin for DevicePixels
impl UnwindSafe for DevicePixels
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
Source§impl<T> CallbackArgs for Twhere
T: Ret,
impl<T> CallbackArgs for Twhere
T: Ret,
Source§fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
Its TypeScript parameters, named
names (name: string, amount: number), or without names value for one and a, b, … for
several.Source§fn into_js_args<'a>(
self,
host: &'a dyn JsHost,
) -> Result<Vec<JsOwned<'a>>, PropError>
fn into_js_args<'a>( self, host: &'a dyn JsHost, ) -> Result<Vec<JsOwned<'a>>, PropError>
The arguments as JS values.