pub struct PhysicalRect<P, S>{
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, S> Clone for PhysicalRect<P, S>
impl<P, S> 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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P, S> Debug for PhysicalRect<P, S>
impl<P, S> Debug for PhysicalRect<P, S>
Source§impl<P, S> Default for PhysicalRect<P, S>
impl<P, S> Default for PhysicalRect<P, S>
Source§fn default() -> PhysicalRect<P, S>
fn default() -> PhysicalRect<P, S>
Returns the “default value” for a type. Read more
Source§impl<P, S> Serialize for PhysicalRect<P, S>
impl<P, S> Serialize for PhysicalRect<P, S>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<P, S> 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