[][src]Struct xwords::crossword::WordIterator

pub struct WordIterator<'s> {
    pub word_boundary: &'s WordBoundary,
    // some fields omitted
}

An Iterator<char> that correctly traversing a Crossword, accounting for direction.

The length of the word is stored in the word_boundary.

Fields

word_boundary: &'s WordBoundary

Implementations

impl<'s> WordIterator<'s>[src]

pub fn new(
    crossword: &'s Crossword,
    word_boundary: &'s WordBoundary
) -> WordIterator<'s>

Notable traits for WordIterator<'s>

impl<'s> Iterator for WordIterator<'s> type Item = char;
[src]

Trait Implementations

impl<'s> Clone for WordIterator<'s>[src]

impl<'s> Debug for WordIterator<'s>[src]

impl<'s> Display for WordIterator<'s>[src]

impl<'_> Eq for WordIterator<'_>[src]

impl<'_> Hash for WordIterator<'_>[src]

impl<'s> Iterator for WordIterator<'s>[src]

type Item = char

The type of the elements being iterated over.

impl<'_> PartialEq<WordIterator<'_>> for WordIterator<'_>[src]

Auto Trait Implementations

impl<'s> RefUnwindSafe for WordIterator<'s>

impl<'s> Send for WordIterator<'s>

impl<'s> Sync for WordIterator<'s>

impl<'s> Unpin for WordIterator<'s>

impl<'s> UnwindSafe for WordIterator<'s>

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> CallHasher for T where
    T: Hash

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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<I> IteratorRandom for I where
    I: Iterator
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>,