pub struct SampleRect {
pub source_region: RectU16,
pub transform: Affine,
}Expand description
A rectangular source region sampled from an image input (e.g., crate::TextureId), paired
with a transform of the rectangle into the destination.
Fields§
§source_region: RectU16Source region in texel coordinates.
transform: AffineTransform mapping the local source region to the destination.
This maps from the local rectangle into the destination, ignoring the origin of
Self::source_region.
Trait Implementations§
Source§impl Clone for SampleRect
impl Clone for SampleRect
Source§fn clone(&self) -> SampleRect
fn clone(&self) -> SampleRect
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 moreSource§impl Debug for SampleRect
impl Debug for SampleRect
impl Copy for SampleRect
Auto Trait Implementations§
impl Freeze for SampleRect
impl RefUnwindSafe for SampleRect
impl Send for SampleRect
impl Sync for SampleRect
impl Unpin for SampleRect
impl UnsafeUnpin for SampleRect
impl UnwindSafe for SampleRect
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