[][src]Struct unicode_reader::Graphemes

pub struct Graphemes<R: Iterator<Item = Result<char>>> { /* fields omitted */ }

Wraps a char-oriented reader and yields the data one Unicode grapheme cluster at a time.

Trait Implementations

impl<R: Iterator<Item = Result<char>>> From<R> for Graphemes<R>[src]

impl<R: Read> From<R> for Graphemes<CodePoints<Bytes<R>>>[src]

Graphemes can be constructed for any byte-oriented reader by going through CodePoints as an internal layer.

impl<R: Iterator<Item = Result<char>>> Iterator for Graphemes<R>[src]

type Item = Result<String>

The type of the elements being iterated over: a io::Result with one Unicode grapheme cluster, or any I/O error raised by the underlying reader.

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

Get the next grapheme cluster from the stream. Note that because grapheme clusters are of indeterminate length, this has to read the underlying reader until the next cluster starts before it can return a grapheme.

Auto Trait Implementations

impl<R> !RefUnwindSafe for Graphemes<R>

impl<R> Send for Graphemes<R> where
    R: Send

impl<R> Sync for Graphemes<R> where
    R: Sync

impl<R> Unpin for Graphemes<R> where
    R: Unpin

impl<R> !UnwindSafe for Graphemes<R>

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<!> for T[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.