Struct unicode::str::Utf16EncoderUnstable [-]  [+] [src]

pub struct Utf16Encoder<I> {
    // some fields omitted
}

Iterator adaptor for encoding chars to UTF-16.

Methods

impl<I> Utf16Encoder<I>

fn new(chars: I) -> Utf16Encoder<I> where I: Iterator<Item=char>

Create an UTF-16 encoder from any char iterator.

Trait Implementations

impl<I> Iterator for Utf16Encoder<I> where I: Iterator<Item=char>

type Item = u16

fn next(&mut self) -> Option<u16>

fn size_hint(&self) -> (usize, Option<usize>)

Derived Implementations

impl<I: Clone> Clone for Utf16Encoder<I>

fn clone(&self) -> Utf16Encoder<I>

fn clone_from(&mut self, source: &Self)