pub struct ScreenInfo {
pub width: f64,
pub height: f64,
pub scale: f64,
}Expand description
Screen information reported in logical pixels (dp/pt) and scale factor
Fields§
§width: f64§height: f64§scale: f64Trait Implementations§
Source§impl Clone for ScreenInfo
impl Clone for ScreenInfo
Source§fn clone(&self) -> ScreenInfo
fn clone(&self) -> ScreenInfo
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 ScreenInfo
impl Debug for ScreenInfo
Auto Trait Implementations§
impl Freeze for ScreenInfo
impl RefUnwindSafe for ScreenInfo
impl Send for ScreenInfo
impl Sync for ScreenInfo
impl Unpin for ScreenInfo
impl UnsafeUnpin for ScreenInfo
impl UnwindSafe for ScreenInfo
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