pub struct Offset {
pub x: i32,
pub y: i32,
pub z: i32,
}
Expand description
An offset into an Image
used for image-to-image
copy operations. All offsets are in texels, and
specifying offsets other than 0 for dimensions
that do not exist is undefined behavior – for
example, specifying a z
offset of 1
in a
two-dimensional image.
Fields§
§x: i32
X offset.
y: i32
Y offset.
z: i32
Z offset.
Implementations§
Trait Implementations§
impl Copy for Offset
impl Eq for Offset
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl Freeze for Offset
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnwindSafe for Offset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)