Struct encode_unicode::iterator::Utf16CharSplitter[][src]

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

The iterator type returned by iter_units()

Implementations

impl<U: Borrow<Utf16Char>, I: Iterator<Item = U>> Utf16CharSplitter<U, I>[src]

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

Extracts the source iterator.

Note that iter_units(iter.into_inner()) is not a no-op:
If the last returned unit from next() was a leading surrogate, the trailing surrogate is lost.

Trait Implementations

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

impl<I: Iterator<Item = Utf16Char>> From<I> for Utf16CharSplitter<Utf16Char, I>[src]

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

A less generic constructor than iter_units()

impl<U: Borrow<Utf16Char>, I: Iterator<Item = U>> Iterator for Utf16CharSplitter<U, I>[src]

type Item = u16

The type of the elements being iterated over.

Auto Trait Implementations

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

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

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

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

impl<U, I> UnwindSafe for Utf16CharSplitter<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.