pub trait Algorithm {
// Required methods
fn next<R>(&mut self, _: &mut Builder, _: &mut R) -> Option<Vector2<f32>>
where R: Rng;
fn size_hint(&self, _: &Builder) -> (usize, Option<usize>);
fn restrict(&mut self, _: Vector2<f32>);
fn stays_legal(&self, _: &Builder, _: Vector2<f32>) -> bool;
}
Expand description
Trait that describes a Poisson disk sampling generating algorithm.
Required Methods§
Sourcefn next<R>(&mut self, _: &mut Builder, _: &mut R) -> Option<Vector2<f32>>where
R: Rng,
fn next<R>(&mut self, _: &mut Builder, _: &mut R) -> Option<Vector2<f32>>where
R: Rng,
Generates new sample advancing the algorithm.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.