whatwg_infra::surrogates

Trait InfraUtf16Surrogate

Source
pub trait InfraUtf16Surrogate {
    const LEADING_SURROGATE_MIN: u16;
    const LEADING_SURROGATE_MAX: u16;
    const TRAILING_SURROGATE_MIN: u16;
    const TRAILING_SURROGATE_MAX: u16;
    const SURROGATE_MIN: u16;
    const SURROGATE_MAX: u16;

    // Required methods
    fn is_surrogate_utf16(self) -> bool;
    fn is_leading_surrogate_utf16(self) -> bool;
    fn is_trailing_surrogate_utf16(self) -> bool;
}
Expand description

Methods from the WHATWG Infra Standard for UTF-16 surrogates

Required Associated Constants§

Source

const LEADING_SURROGATE_MIN: u16

The minimum UTF-16 codepoint that can be represented as a leading surrogate

Source

const LEADING_SURROGATE_MAX: u16

The minimum UTF-16 codepoint that can be represented as a leading surrogate

Source

const TRAILING_SURROGATE_MIN: u16

The minimum UTF-16 codepoint that can be represented as a trailing surrogate

Source

const TRAILING_SURROGATE_MAX: u16

The maximum UTF-16 codepoint that can be represented as a trailing surrogate

Source

const SURROGATE_MIN: u16

The minimum UTF-16 codepoint that can be represented as a surrogate

Source

const SURROGATE_MAX: u16

The maximum UTF-16 codepoint that can be represented as a surrogate

Required Methods§

Source

fn is_surrogate_utf16(self) -> bool

See the documentation for is_surrogate_utf16()

Source

fn is_leading_surrogate_utf16(self) -> bool

See the documentation for is_leading_surrogate_utf16()

Source

fn is_trailing_surrogate_utf16(self) -> bool

See the documentation for is_trailing_surrogate_utf16()

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl InfraUtf16Surrogate for u16

Implementors§