Struct std::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>

Create an UTF-16 encoder from any char iterator.

Trait Implementations

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

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

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

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

fn chain<U: Iterator<u16>>(self, U) -> Chain<Utf16Encoder<I>, U>

fn zip<B, U: Iterator<B>>(self, U) -> Zip<Utf16Encoder<I>, U>

fn map<B>(self, |u16| -> B) -> Map<'r, u16, B, Utf16Encoder<I>>

fn filter(self, |&u16| -> bool) -> Filter<'r, u16, Utf16Encoder<I>>

fn filter_map<B>(self, |u16| -> Option<B>) -> FilterMap<'r, u16, B, Utf16Encoder<I>>

fn enumerate(self) -> Enumerate<Utf16Encoder<I>>

fn peekable(self) -> Peekable<u16, Utf16Encoder<I>>

fn skip_while(self, |&u16| -> bool) -> SkipWhile<'r, u16, Utf16Encoder<I>>

fn take_while(self, |&u16| -> bool) -> TakeWhile<'r, u16, Utf16Encoder<I>>

fn skip(self, uint) -> Skip<Utf16Encoder<I>>

fn take(self, uint) -> Take<Utf16Encoder<I>>

fn scan<St, B>(self, St, |&mut St, u16| -> Option<B>) -> Scan<'r, u16, B, Utf16Encoder<I>, St>

fn flat_map<B, U: Iterator<B>>(self, |u16| -> U) -> FlatMap<'r, u16, Utf16Encoder<I>, U>

fn fuse(self) -> Fuse<Utf16Encoder<I>>

fn inspect(self, |&u16|) -> Inspect<'r, u16, Utf16Encoder<I>>

fn by_ref(&'r mut self) -> ByRef<'r, Utf16Encoder<I>>

fn collect<B: FromIterator<u16>>(&mut self) -> B

fn nth(&mut self, uint) -> Option<u16>

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

fn fold<B>(&mut self, B, |B, u16| -> B) -> B

fn count(&mut self) -> uint

fn all(&mut self, |u16| -> bool) -> bool

fn any(&mut self, |u16| -> bool) -> bool

fn find(&mut self, |&u16| -> bool) -> Option<u16>

fn position(&mut self, |u16| -> bool) -> Option<uint>

fn max_by<B: Ord>(&mut self, |&u16| -> B) -> Option<u16>

fn min_by<B: Ord>(&mut self, |&u16| -> B) -> Option<u16>

Derived Implementations

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

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

fn clone_from(&mut self, &Utf16Encoder<I>)