veloren_world/util/
sampler.rs

1pub trait Sampler<'a>: Sized {
2    type Index: 'a;
3    type Sample: 'a;
4
5    fn get(&self, index: Self::Index) -> Self::Sample;
6}
7
8pub trait SamplerMut<'a>: Sized {
9    type Index: 'a;
10    type Sample: 'a;
11
12    fn get(&mut self, index: Self::Index) -> Self::Sample;
13}