# Function std::char::decode_utf16

1.9.0 · source · [−]

    pub fn decode_utf16<I>(iter: I) -> DecodeUtf16<<I as IntoIterator>::IntoIter>ⓘNotable traits for DecodeUtf16<I>impl<I> Iterator for DecodeUtf16<I> where
        I: Iterator<Item = u16>,     type Item = Result<char, DecodeUtf16Error>; where
        I: IntoIterator<Item = u16>,

Expand description

Creates an iterator over the UTF-16 encoded code points in `iter`, returning unpaired surrogates as `Err`s. Use `char::decode_utf16` instead.