[][src]Struct poisson::PoissonIter

pub struct PoissonIter<F, V, R, A> where
    F: Float,
    V: Vector<F>,
    R: Rng,
    A: Algorithm<F, V>, 
{ /* fields omitted */ }

Iterator for generating poisson-disk distribution.

Methods

impl<F, V, R, A> PoissonIter<F, V, R, A> where
    F: Float,
    V: Vector<F>,
    R: Rng,
    A: Algorithm<F, V>, 
[src]

pub fn radius(&self) -> F[src]

Returns the radius of the generator.

pub fn poisson_type(&self) -> Type[src]

Returns the type of the generator.

pub fn restrict(&mut self, value: V)[src]

Restricts the poisson algorithm with arbitary sample.

Checks legality of sample for currrent distribution.

Trait Implementations

impl<F: Clone, V: Clone, R: Clone, A: Clone> Clone for PoissonIter<F, V, R, A> where
    F: Float,
    V: Vector<F>,
    R: Rng,
    A: Algorithm<F, V>, 
[src]

impl<F, V, R, A> Iterator for PoissonIter<F, V, R, A> where
    F: Float,
    V: Vector<F>,
    R: Rng,
    A: Algorithm<F, V>, 
[src]

type Item = V

The type of the elements being iterated over.

Auto Trait Implementations

impl<F, V, R, A> Send for PoissonIter<F, V, R, A> where
    A: Send,
    F: Send,
    R: Send,
    V: Send

impl<F, V, R, A> Sync for PoissonIter<F, V, R, A> where
    A: Sync,
    F: Sync,
    R: Sync,
    V: Sync

impl<F, V, R, A> Unpin for PoissonIter<F, V, R, A> where
    A: Unpin,
    F: Unpin,
    R: Unpin,
    V: Unpin

impl<F, V, R, A> RefUnwindSafe for PoissonIter<F, V, R, A> where
    A: RefUnwindSafe,
    F: RefUnwindSafe,
    R: RefUnwindSafe,
    V: RefUnwindSafe

impl<F, V, R, A> UnwindSafe for PoissonIter<F, V, R, A> where
    A: UnwindSafe,
    F: UnwindSafe,
    R: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]