Struct ViewportSize
pub struct ViewportSize { /* private fields */ }Expand description
Viewport dimensions in abstract display units.
Implementations§
§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§
§impl Clone for ViewportSize
impl Clone for ViewportSize
§fn clone(&self) -> ViewportSize
fn clone(&self) -> ViewportSize
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 more§impl Debug for ViewportSize
impl Debug for ViewportSize
§impl Hash for ViewportSize
impl Hash for ViewportSize
§impl PartialEq for ViewportSize
impl PartialEq for ViewportSize
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