Struct nlprule::tokenizer::SentenceIter[][src]

pub struct SentenceIter<'t> { /* fields omitted */ }

An iterator over Sentences. Has some key properties:

  • Preceding whitespace is always included so the first sentence always starts at byte and char index zero.
  • There are no gaps between sentences i.e. sentence[i - 1].span().end() == sentence[i].span().start().
  • Behavior for trailing whitespace is not defined. Can be included in the last sentence or not be part of any sentence.

Trait Implementations

impl<'t> Iterator for SentenceIter<'t>[src]

type Item = Sentence<'t>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'t> !RefUnwindSafe for SentenceIter<'t>

impl<'t> Send for SentenceIter<'t>

impl<'t> Sync for SentenceIter<'t>

impl<'t> Unpin for SentenceIter<'t>

impl<'t> !UnwindSafe for SentenceIter<'t>

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> Itertools for T where
    T: Iterator + ?Sized
[src]

impl<T> Itertools for T where
    T: Iterator + ?Sized
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

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.