Struct carnelian::render::CopyRegion
source · pub struct CopyRegion {
pub src_offset: Point2D<u32>,
pub dst_offset: Point2D<u32>,
pub extent: Size2D<u32>,
}
Expand description
Rectangular copy region.
Fields§
§src_offset: Point2D<u32>
Top-left origin of source rectangle.
dst_offset: Point2D<u32>
Top-left origin of destination rectangle.
extent: Size2D<u32>
Size of both source and destination rectangles.
Trait Implementations§
source§impl Clone for CopyRegion
impl Clone for CopyRegion
source§fn clone(&self) -> CopyRegion
fn clone(&self) -> CopyRegion
Returns a copy 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 Debug for CopyRegion
impl Debug for CopyRegion
source§impl PartialEq for CopyRegion
impl PartialEq for CopyRegion
source§fn eq(&self, other: &CopyRegion) -> bool
fn eq(&self, other: &CopyRegion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CopyRegion
impl StructuralPartialEq for CopyRegion
Auto Trait Implementations§
impl Freeze for CopyRegion
impl RefUnwindSafe for CopyRegion
impl Send for CopyRegion
impl Sync for CopyRegion
impl Unpin for CopyRegion
impl UnwindSafe for CopyRegion
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