pub struct Dim3;
Expand description
3D dimension.
Trait Implementations
sourceimpl Dimensionable for Dim3
impl Dimensionable for Dim3
type Offset = [u32; 3]
type Offset = [u32; 3]
Offset type of a dimension (used to caracterize addition and subtraction of sizes, mostly).
sourceconst ZERO_OFFSET: Self::Offset = [0, 0, 0]
const ZERO_OFFSET: Self::Offset = [0, 0, 0]
Zero offset. Read more
sourcefn width(size: Self::Size) -> u32
fn width(size: Self::Size) -> u32
Width of the associated Dimensionable::Size
.
sourcefn height(size: Self::Size) -> u32
fn height(size: Self::Size) -> u32
Height of the associated Dimensionable::Size
. If it doesn’t have one, set it to 1.
sourcefn depth(size: Self::Size) -> u32
fn depth(size: Self::Size) -> u32
Depth of the associated Dimensionable::Size
. If it doesn’t have one, set it to 1.
impl Copy for Dim3
Auto Trait Implementations
impl RefUnwindSafe for Dim3
impl Send for Dim3
impl Sync for Dim3
impl Unpin for Dim3
impl UnwindSafe for Dim3
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more