pub trait Sampler<'a>: Sized {
    type Index: 'a;
    type Sample: 'a;

    // Required method
    fn get(&self, index: Self::Index) -> Self::Sample;
}

Required Associated Types§

source

type Index: 'a

source

type Sample: 'a

Required Methods§

source

fn get(&self, index: Self::Index) -> Self::Sample

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Sampler<'static> for FastNoise2d

§

type Index = Vec2<f64>

§

type Sample = f32

source§

impl Sampler<'static> for FastNoise

§

type Index = Vec3<f64>

§

type Sample = f32

source§

impl Sampler<'static> for RandomField

§

type Index = Vec3<i32>

§

type Sample = u32

source§

impl Sampler<'static> for RandomPerm

§

type Index = u32

§

type Sample = u32

source§

impl Sampler<'static> for StructureGen2d

§

type Index = Vec2<i32>

§

type Sample = [(Vec2<i32>, u32); 9]

source§

impl Sampler<'static> for UnitChooser

§

type Index = u32

§

type Sample = (Vec2<i32>, Vec2<i32>)

source§

impl<'a> Sampler<'a> for ColumnGen<'a>

§

type Index = (Vec2<i32>, IndexRef<'a>, Option<&'a Calendar>)

§

type Sample = Option<ColumnSample<'a>>