Struct eytzinger::PermutationGenerator[][src]

pub struct PermutationGenerator { /* fields omitted */ }

Generates a permutation that transforms a sorted array into an eytzinger array.

This is an iterator which yields a permutation (indexes into the sorted array) in the order of an eytzinger array.

Implementations

impl PermutationGenerator[src]

pub fn new(size: usize) -> PermutationGenerator

Notable traits for PermutationGenerator

impl Iterator for PermutationGenerator type Item = usize;
[src]

Generate a new permutation for a sorted array of a given size.

Trait Implementations

impl Clone for PermutationGenerator[src]

impl Debug for PermutationGenerator[src]

impl ExactSizeIterator for PermutationGenerator[src]

impl Iterator for PermutationGenerator[src]

type Item = usize

The type of the elements being iterated over.

impl Permutation for PermutationGenerator[src]

type Iter = PermutationGenerator

An iterator through the permutation. This may be more efficient than indexing a counter. Read more

Auto Trait Implementations

Blanket Implementations

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

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

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

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.