pub enum Cube {
Air,
UnexposedSolid,
Color(u32),
}Expand description
Result of a getcube query.
Variants§
Air
Empty space (sky, air pocket, or out-of-bounds (x, y)).
UnexposedSolid
Solid material whose colour isn’t stored in the slab list — either deep below the deepest slab, or in the hidden interior between a slab’s floor and the next slab’s ceiling colours.
Color(u32)
Visible voxel; 0xAARRGGBB in voxlap’s storage convention
(the slab bytes are little-endian B,G,R,intensity → reading
as u32_le lands intensity in the high byte).
Trait Implementations§
impl Copy for Cube
impl Eq for Cube
impl StructuralPartialEq for Cube
Auto Trait Implementations§
impl Freeze for Cube
impl RefUnwindSafe for Cube
impl Send for Cube
impl Sync for Cube
impl Unpin for Cube
impl UnsafeUnpin for Cube
impl UnwindSafe for Cube
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more