pub struct ViewportSize { /* private fields */ }Expand description
Viewport dimensions in abstract display units.
Implementations§
Source§impl ViewportSize
impl ViewportSize
pub fn new(width: u32, height: u32) -> ViewportSize
pub fn width(self) -> u32
pub fn height(self) -> u32
pub fn orientation(self) -> ViewportOrientation
pub fn class(self) -> ViewportClass
Trait Implementations§
Source§impl Clone for ViewportSize
impl Clone for ViewportSize
Source§fn clone(&self) -> ViewportSize
fn clone(&self) -> ViewportSize
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 moreSource§impl Debug for ViewportSize
impl Debug for ViewportSize
Source§impl Hash for ViewportSize
impl Hash for ViewportSize
Source§impl PartialEq for ViewportSize
impl PartialEq for ViewportSize
Source§fn eq(&self, other: &ViewportSize) -> bool
fn eq(&self, other: &ViewportSize) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ViewportSize
impl Eq for ViewportSize
impl StructuralPartialEq for ViewportSize
Auto Trait Implementations§
impl Freeze for ViewportSize
impl RefUnwindSafe for ViewportSize
impl Send for ViewportSize
impl Sync for ViewportSize
impl Unpin for ViewportSize
impl UnsafeUnpin for ViewportSize
impl UnwindSafe for ViewportSize
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