pub struct ScreenDimensions {
pub width: i32,
pub height: i32,
}Expand description
Screen dimensions.
Fields§
§width: i32§height: i32Trait Implementations§
Source§impl Clone for ScreenDimensions
impl Clone for ScreenDimensions
Source§fn clone(&self) -> ScreenDimensions
fn clone(&self) -> ScreenDimensions
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 ScreenDimensions
impl Debug for ScreenDimensions
impl Copy for ScreenDimensions
Auto Trait Implementations§
impl Freeze for ScreenDimensions
impl RefUnwindSafe for ScreenDimensions
impl Send for ScreenDimensions
impl Sync for ScreenDimensions
impl Unpin for ScreenDimensions
impl UnsafeUnpin for ScreenDimensions
impl UnwindSafe for ScreenDimensions
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