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§
Sourceconst LEADING_SURROGATE_MIN: u16
const LEADING_SURROGATE_MIN: u16
The minimum UTF-16 codepoint that can be represented as a leading surrogate
Sourceconst LEADING_SURROGATE_MAX: u16
const LEADING_SURROGATE_MAX: u16
The minimum UTF-16 codepoint that can be represented as a leading surrogate
Sourceconst TRAILING_SURROGATE_MIN: u16
const TRAILING_SURROGATE_MIN: u16
The minimum UTF-16 codepoint that can be represented as a trailing surrogate
Sourceconst TRAILING_SURROGATE_MAX: u16
const TRAILING_SURROGATE_MAX: u16
The maximum UTF-16 codepoint that can be represented as a trailing surrogate
Sourceconst SURROGATE_MIN: u16
const SURROGATE_MIN: u16
The minimum UTF-16 codepoint that can be represented as a surrogate
Sourceconst SURROGATE_MAX: u16
const SURROGATE_MAX: u16
The maximum UTF-16 codepoint that can be represented as a surrogate
Required Methods§
Sourcefn is_surrogate_utf16(self) -> bool
fn is_surrogate_utf16(self) -> bool
See the documentation for is_surrogate_utf16()
Sourcefn is_leading_surrogate_utf16(self) -> bool
fn is_leading_surrogate_utf16(self) -> bool
See the documentation for is_leading_surrogate_utf16()
Sourcefn is_trailing_surrogate_utf16(self) -> bool
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.