pub struct PhysicalRect<P: Pixel, S: Pixel> {
pub position: PhysicalPosition<P>,
pub size: PhysicalSize<S>,
}
Expand description
A rectangular region in physical pixels.
Fields§
§position: PhysicalPosition<P>
Rect position.
size: PhysicalSize<S>
Rect size.
Trait Implementations§
Source§impl<P: Clone + Pixel, S: Clone + Pixel> Clone for PhysicalRect<P, S>
impl<P: Clone + Pixel, S: Clone + Pixel> Clone for PhysicalRect<P, S>
Source§fn clone(&self) -> PhysicalRect<P, S>
fn clone(&self) -> PhysicalRect<P, S>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<P, S> Serialize for PhysicalRect<P, S>
impl<P, S> Serialize for PhysicalRect<P, S>
impl<P: Copy + Pixel, S: Copy + Pixel> Copy for PhysicalRect<P, S>
Auto Trait Implementations§
impl<P, S> Freeze for PhysicalRect<P, S>
impl<P, S> RefUnwindSafe for PhysicalRect<P, S>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<P, S> Send for PhysicalRect<P, S>
impl<P, S> Sync for PhysicalRect<P, S>
impl<P, S> Unpin for PhysicalRect<P, S>
impl<P, S> UnwindSafe for PhysicalRect<P, S>where
P: UnwindSafe,
S: UnwindSafe,
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