[][src]Trait encode_unicode::U16UtfExt

pub trait U16UtfExt {
    fn utf16_needs_extra_unit(self) -> Option<bool>;
fn utf16_is_leading_surrogate(self) -> bool; }

Methods for working with u16s as UTF-16 units.

Required methods

fn utf16_needs_extra_unit(self) -> Option<bool>

Will you need an extra unit to complete this codepoint?

Failures:

0xdc00..0xe000

fn utf16_is_leading_surrogate(self) -> bool

Does this u16 need another u16 to complete a codepoint? Returns (self & 0xfc00) == 0xd800

Loading content...

Implementations on Foreign Types

impl U16UtfExt for u16[src]

Loading content...

Implementors

Loading content...