pub struct Slab {
pub ztop: u8,
pub vis: u8,
pub colors: Vec<u8>,
}Expand description
One run of consecutive voxels at a fixed (x, y) column.
Fields§
§ztop: u8Top z coordinate of the run (the “ztop” byte in the file format).
vis: u8Visibility-flags byte; bits encode which of the six cube faces of
the run are exposed to air. Bit 4 (0x10) is the “back-face
suppress” flag voxlaptest’s setkvx reads at offset +2 of each
slab.
colors: Vec<u8>Per-voxel palette indices. colors.len() is the run length
(“zleng” in the file format).
Trait Implementations§
impl Eq for Slab
impl StructuralPartialEq for Slab
Auto Trait Implementations§
impl Freeze for Slab
impl RefUnwindSafe for Slab
impl Send for Slab
impl Sync for Slab
impl Unpin for Slab
impl UnsafeUnpin for Slab
impl UnwindSafe for Slab
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