pub fn voxel_get(&self, p: isize) -> Voxel {
        let maxima = self.voxel_map[p as usize];
        match maxima.cmp(&-1) {
            std::cmp::Ordering::Equal => Voxel::Vacuum,
            std::cmp::Ordering::Greater => Voxel::Maxima(maxima as usize),
            std::cmp::Ordering::Less => {
                let weight = self.weight_get(maxima);
                Voxel::Weight(weight)
            }
        }
    }
/// A none locking retrieval of the state of voxel, p. This should only be
/// used once the VoxelMap has been fully populated.
A none locking retrieval of the state of voxel, p. This should only be
used once the VoxelMap has been fully populated.
A none locking retrieval of the state of voxel p . This should only be used once the VoxelMap has been fully populated .
pub fn voxel_get(&self, p: isize) -> Voxel {
        let maxima = self.voxel_map[p as usize];
        match maxima.cmp(&-1) {
            std::cmp::Ordering::Equal => Voxel::Vacuum,
            std::cmp::Ordering::Greater => Voxel::Maxima(maxima as usize),
            std::cmp::Ordering::Less => {
                let weight = self.weight_get(maxima);
                Voxel::Weight(weight)
            }
        }
    }
pub fn voxel_get ( & self , p : isize ) -> Voxel { let maxima = self . voxel_map [ p as usize ] ; match maxima . cmp ( & - 1 ) { std :: cmp :: Ordering :: Equal => Voxel :: Vacuum , std :: cmp :: Ordering :: Greater => Voxel :: Maxima ( maxima as usize ) , std :: cmp :: Ordering :: Less => { let weight = self . weight_get ( maxima ) ; Voxel :: Weight ( weight ) } } }
A none locking retrieval of the state of voxel, p. This should only be
used once the VoxelMap has been fully populated.
A none locking retrieval of the state of voxel p . This should only be used once the VoxelMap has been fully populated .
&self
p
isize
&self
p
isize