pub struct Dim3 {
pub x: u32,
pub y: u32,
pub z: u32,
}Expand description
Three unsigned 32-bit axis values for CUDA grids, blocks, or clusters.
The interpretation depends on the receiving API. The default value has all axes set to zero; launch geometry constructors reject zero dimensions.
Fields§
§x: u32Value along the x axis.
y: u32Value along the y axis.
z: u32Value along the z axis.
Implementations§
Trait Implementations§
impl Copy for Dim3
impl Eq for Dim3
Source§impl Ord for Dim3
impl Ord for Dim3
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Dim3
impl PartialOrd for Dim3
impl StructuralPartialEq for Dim3
Auto Trait Implementations§
impl Forget for Dim3
impl Freeze for Dim3
impl Move for Dim3
impl RefUnwindSafe for Dim3
impl Send for Dim3
impl Sync for Dim3
impl Unpin for Dim3
impl UnsafeUnpin for Dim3
impl UnwindSafe for Dim3
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.