pub struct ScreenSize {
pub width_cm: Option<i32>,
pub height_cm: Option<i32>,
pub landscape_aspect_ratio: Option<f32>,
pub portait_aspect_ratio: Option<f32>,
}Expand description
Screen size
Fields§
§width_cm: Option<i32>§height_cm: Option<i32>§landscape_aspect_ratio: Option<f32>§portait_aspect_ratio: Option<f32>Trait Implementations§
Source§impl Clone for ScreenSize
impl Clone for ScreenSize
Source§fn clone(&self) -> ScreenSize
fn clone(&self) -> ScreenSize
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 ScreenSize
impl Debug for ScreenSize
Source§impl From<di_edid_screen_size> for ScreenSize
impl From<di_edid_screen_size> for ScreenSize
Source§fn from(value: di_edid_screen_size) -> ScreenSize
fn from(value: di_edid_screen_size) -> ScreenSize
Converts to this type from the input type.
impl Copy for ScreenSize
Auto Trait Implementations§
impl Freeze for ScreenSize
impl RefUnwindSafe for ScreenSize
impl Send for ScreenSize
impl Sync for ScreenSize
impl Unpin for ScreenSize
impl UnwindSafe for ScreenSize
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