Trait veloren_common::vol::IntoVolIterator

source ·
pub trait IntoVolIterator<'a>: BaseVol
where Self::Vox: 'a,
{ type IntoIter: Iterator<Item = (Vec3<i32>, &'a Self::Vox)>; // Required method fn vol_iter( self, lower_bound: Vec3<i32>, upper_bound: Vec3<i32>, ) -> Self::IntoIter; }
Expand description

A volume (usually rather a reference to a volume) that is convertible into an iterator to a cuboid subsection of the volume.

Required Associated Types§

source

type IntoIter: Iterator<Item = (Vec3<i32>, &'a Self::Vox)>

Required Methods§

source

fn vol_iter( self, lower_bound: Vec3<i32>, upper_bound: Vec3<i32>, ) -> Self::IntoIter

Implementors§

source§

impl<'a, V, M, A: Access> IntoVolIterator<'a> for &'a Dyna<V, M, A>

§

type IntoIter = DefaultVolIterator<'a, Dyna<V, M, A>>

source§

impl<'a, V, S: RectVolSize, M: Clone> IntoVolIterator<'a> for &'a Chonk<V, S, M>

§

type IntoIter = ChonkVolIter<'a, V, S, M>

source§

impl<'a, V, S: VolSize, M> IntoVolIterator<'a> for &'a Chunk<V, S, M>

§

type IntoIter = ChunkVolIter<'a, V, S, M>