Trait PackingFormula

Source
pub trait PackingFormula: Copy {
    // Required methods
    fn dimensions(&self, dims: Vec3<u32>) -> (u32, u32);
    fn index(&self, dims: Vec3<u32>, x: u32, y: u32, z: u32) -> (u32, u32);
}
Expand description

Formula for packing voxel data into a 2d array

Required Methods§

Source

fn dimensions(&self, dims: Vec3<u32>) -> (u32, u32)

Source

fn index(&self, dims: Vec3<u32>, x: u32, y: u32, z: u32) -> (u32, u32)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§