use std::fmt::Debug;
use rand::Rng;
use crate::Builder;
pub use self::bridson::Bridson;
pub use self::ebeida::Ebeida;
mod bridson;
mod ebeida;
pub trait Creator: Copy + Debug {
type Algo: Algorithm;
fn create(_: &Builder) -> Self::Algo;
}
pub trait Algorithm {
fn next<R>(&mut self, _: &mut Builder, _: &mut R) -> Option<mint::Vector2<f32>>
where
R: Rng;
fn size_hint(&self, _: &Builder) -> (usize, Option<usize>);
fn restrict(&mut self, _: mint::Vector2<f32>);
fn stays_legal(&self, _: &Builder, _: mint::Vector2<f32>) -> bool;
}