Struct unicode::str::Utf16EncoderExperimental [-]  [+] [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<char>

Create an UTF-16 encoder from any char iterator.

Trait Implementations

impl<I> Iterator<u16> for Utf16Encoder<I> where I: Iterator<char>

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

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

Derived Implementations

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

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

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