pub struct DeviceViewport {
pub width: i32,
pub height: i32,
}Expand description
Viewport dimensions for a device descriptor.
Fields§
§width: i32The viewport width in CSS pixels.
height: i32The viewport height in CSS pixels.
Trait Implementations§
Source§impl Clone for DeviceViewport
impl Clone for DeviceViewport
Source§fn clone(&self) -> DeviceViewport
fn clone(&self) -> DeviceViewport
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 DeviceViewport
impl Debug for DeviceViewport
Source§impl<'de> Deserialize<'de> for DeviceViewport
impl<'de> Deserialize<'de> for DeviceViewport
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
Auto Trait Implementations§
impl Freeze for DeviceViewport
impl RefUnwindSafe for DeviceViewport
impl Send for DeviceViewport
impl Sync for DeviceViewport
impl Unpin for DeviceViewport
impl UnsafeUnpin for DeviceViewport
impl UnwindSafe for DeviceViewport
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