pub struct WindowResolution {
pub width: u32,
pub height: u32,
}Expand description
Resolution for a client window
Fields§
§width: u32The width of the window
height: u32The height of the window
Trait Implementations§
Source§impl Clone for WindowResolution
impl Clone for WindowResolution
Source§fn clone(&self) -> WindowResolution
fn clone(&self) -> WindowResolution
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 WindowResolution
Source§impl Debug for WindowResolution
impl Debug for WindowResolution
Source§impl<'de> Deserialize<'de> for WindowResolution
impl<'de> Deserialize<'de> for WindowResolution
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 PartialEq for WindowResolution
impl PartialEq for WindowResolution
Source§fn eq(&self, other: &WindowResolution) -> bool
fn eq(&self, other: &WindowResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WindowResolution
impl Serialize for WindowResolution
impl StructuralPartialEq for WindowResolution
Auto Trait Implementations§
impl Freeze for WindowResolution
impl RefUnwindSafe for WindowResolution
impl Send for WindowResolution
impl Sync for WindowResolution
impl Unpin for WindowResolution
impl UnsafeUnpin for WindowResolution
impl UnwindSafe for WindowResolution
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