pub struct CubeDim {
pub x: u32,
pub y: u32,
pub z: u32,
}Fields§
§x: u32§y: u32§z: u32Implementations§
Source§impl CubeDim
impl CubeDim
Sourcepub const fn new_single() -> Self
pub const fn new_single() -> Self
Create a new cube dim with x = y = z = 1.
Sourcepub const fn new_2d(x: u32, y: u32) -> Self
pub const fn new_2d(x: u32, y: u32) -> Self
Create a new cube dim with the given x and y, and z = 1.
Sourcepub const fn new_3d(x: u32, y: u32, z: u32) -> Self
pub const fn new_3d(x: u32, y: u32, z: u32) -> Self
Create a new cube dim with the given x, y and z. This is equivalent to the new function.
Sourcepub const fn can_contain(&self, other: CubeDim) -> bool
pub const fn can_contain(&self, other: CubeDim) -> bool
Whether this CubeDim can fully contain other
Trait Implementations§
impl Copy for CubeDim
impl Eq for CubeDim
impl StructuralPartialEq for CubeDim
Auto Trait Implementations§
impl Freeze for CubeDim
impl RefUnwindSafe for CubeDim
impl Send for CubeDim
impl Sync for CubeDim
impl Unpin for CubeDim
impl UnwindSafe for CubeDim
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§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.