pub struct PhysicalSize {
pub width: u32,
pub height: u32,
}Expand description
An integer pixel extent in physical device pixels. This is the unit the platform layer and the render surface allocate buffers in.
Fields§
§width: u32§height: u32Implementations§
Source§impl PhysicalSize
impl PhysicalSize
Trait Implementations§
Source§impl Clone for PhysicalSize
impl Clone for PhysicalSize
Source§fn clone(&self) -> PhysicalSize
fn clone(&self) -> PhysicalSize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PhysicalSize
Source§impl Debug for PhysicalSize
impl Debug for PhysicalSize
Source§impl Default for PhysicalSize
impl Default for PhysicalSize
Source§fn default() -> PhysicalSize
fn default() -> PhysicalSize
Returns the “default value” for a type. Read more
impl Eq for PhysicalSize
Source§impl PartialEq for PhysicalSize
impl PartialEq for PhysicalSize
Source§fn eq(&self, other: &PhysicalSize) -> bool
fn eq(&self, other: &PhysicalSize) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PhysicalSize
Auto Trait Implementations§
impl Freeze for PhysicalSize
impl RefUnwindSafe for PhysicalSize
impl Send for PhysicalSize
impl Sync for PhysicalSize
impl Unpin for PhysicalSize
impl UnsafeUnpin for PhysicalSize
impl UnwindSafe for PhysicalSize
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