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() -> CubeDim
 
pub const fn new_single() -> CubeDim
Create a new cube dim with x = y = z = 1.
Sourcepub const fn new_2d(x: u32, y: u32) -> CubeDim
 
pub const fn new_2d(x: u32, y: u32) -> CubeDim
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) -> CubeDim
 
pub const fn new_3d(x: u32, y: u32, z: u32) -> CubeDim
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§
Source§impl<'de> Deserialize<'de> for CubeDim
 
impl<'de> Deserialize<'de> for CubeDim
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<CubeDim, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<CubeDim, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CubeDim
 
impl Serialize for CubeDim
Source§fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
 
fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
Serialize this value into the given Serde serializer. Read more
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.