Struct encode_unicode::iterator::Utf8CharSplitter[][src]

pub struct Utf8CharSplitter<U: Borrow<Utf8Char>, I: Iterator<Item = U>> { /* fields omitted */ }

The iterator type returned by iter_bytes()

See its documentation for details.

Implementations

impl<U: Borrow<Utf8Char>, I: Iterator<Item = U>> Utf8CharSplitter<U, I>[src]

pub fn into_inner(self) -> I[src]

Extracts the source iterator.

Note that iter_bytes(iter.into_inner()) is not a no-op:
If the last returned byte from next() was not an ASCII by, the remaining bytes of that codepoint is lost.

Trait Implementations

impl<U: Clone + Borrow<Utf8Char>, I: Clone + Iterator<Item = U>> Clone for Utf8CharSplitter<U, I>[src]

impl<I: Iterator<Item = Utf8Char>> From<I> for Utf8CharSplitter<Utf8Char, I>[src]

fn from(iter: I) -> Self[src]

A less generic constructor than iter_bytes()

impl<U: Borrow<Utf8Char>, I: Iterator<Item = U>> Iterator for Utf8CharSplitter<U, I>[src]

type Item = u8

The type of the elements being iterated over.

impl<U: Borrow<Utf8Char>, I: Iterator<Item = U>> Read for Utf8CharSplitter<U, I>[src]

fn read(&mut self, buf: &mut [u8]) -> Result<usize, ioError>[src]

Always returns Ok

Auto Trait Implementations

impl<U, I> RefUnwindSafe for Utf8CharSplitter<U, I> where
    I: RefUnwindSafe

impl<U, I> Send for Utf8CharSplitter<U, I> where
    I: Send

impl<U, I> Sync for Utf8CharSplitter<U, I> where
    I: Sync

impl<U, I> Unpin for Utf8CharSplitter<U, I> where
    I: Unpin

impl<U, I> UnwindSafe for Utf8CharSplitter<U, I> where
    I: UnwindSafe

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