[][src]Enum ddo::core::common::DomainIter

pub enum DomainIter<'a> {
    Vector(IntoIter<i32>),
    Slice(Iter<'a, i32>),
    BitSet(BitSetIter<'a>),
    Range(Range<i32>),
    RangeInclusive(RangeInclusive<i32>),
}

DomainIter is the type of the iterator used to go over the possible values of a domain. Therefore, it is isomorphic to the Domain type itself.

The implementation of the iterator is of very little interest in and of itself. It should really only be considered as a means to iterate over the values in the domain.

Variants

Vector(IntoIter<i32>)
Slice(Iter<'a, i32>)
BitSet(BitSetIter<'a>)
Range(Range<i32>)
RangeInclusive(RangeInclusive<i32>)

Trait Implementations

impl<'_> Iterator for DomainIter<'_>[src]

DomainIter is an iterator for the Domain. As such, it implements the standard Iterator trait.

type Item = i32

The type of the elements being iterated over.

fn next(&mut self) -> Option<Self::Item>[src]

Yields the next value of the domain or None if the iteration already exhausted all the values.

Auto Trait Implementations

impl<'a> RefUnwindSafe for DomainIter<'a>

impl<'a> Send for DomainIter<'a>

impl<'a> Sync for DomainIter<'a>

impl<'a> Unpin for DomainIter<'a>

impl<'a> UnwindSafe for DomainIter<'a>

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, 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.