pub trait IsVoxelImage<T> {
// Required methods
fn size_x(&self) -> usize;
fn size_y(&self) -> usize;
fn size_z(&self) -> usize;
fn voxel(&self, x: usize, y: usize, z: usize) -> Result<T>;
}Expand description
IsVoxelImage is a trait used for any type of voxel image
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".