pub struct RenderExtent {
pub width: u32,
pub height: u32,
}Expand description
Drawable size in physical pixels.
Fields§
§width: u32Drawable width in pixels.
height: u32Drawable height in pixels.
Implementations§
Trait Implementations§
Source§impl Clone for RenderExtent
impl Clone for RenderExtent
Source§fn clone(&self) -> RenderExtent
fn clone(&self) -> RenderExtent
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 moreimpl Copy for RenderExtent
Source§impl Debug for RenderExtent
impl Debug for RenderExtent
Source§impl Default for RenderExtent
impl Default for RenderExtent
Source§fn default() -> RenderExtent
fn default() -> RenderExtent
Returns the “default value” for a type. Read more
impl Eq for RenderExtent
Source§impl PartialEq for RenderExtent
impl PartialEq for RenderExtent
Source§fn eq(&self, other: &RenderExtent) -> bool
fn eq(&self, other: &RenderExtent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RenderExtent
Auto Trait Implementations§
impl Freeze for RenderExtent
impl RefUnwindSafe for RenderExtent
impl Send for RenderExtent
impl Sync for RenderExtent
impl Unpin for RenderExtent
impl UnsafeUnpin for RenderExtent
impl UnwindSafe for RenderExtent
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