Text of rust.docs.kernel.org › core › char › fn.decode_utf16.html as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

decode_utf16 in core::char - Rust

Skip to main content decode_utf16 core :: char Function decode_ utf16 1.9.0 · Source pub fn decode_utf16<I: IntoIterator <Item = u16 >>( iter: I, ) -> DecodeUtf16 <I:: IntoIter > ⓘ 👎 Deprecating in a future version: replaced by the decode_utf16 method on char 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.