Enum encode_unicode::error::InvalidCodepoint [] [src]

pub enum InvalidCodepoint {
    Utf16Reserved,
    TooHigh,
}

Reasons why an u32 is not a valid UTF codepoint.

Variants

It's reserved for UTF-16 surrogate pairs."

It's higher than the highest codepoint (which is 0x10ffff).

Methods

impl InvalidCodepoint
[src]

Get the range of values for which this error would be given.

Trait Implementations

impl Clone for InvalidCodepoint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for InvalidCodepoint
[src]

impl Debug for InvalidCodepoint
[src]

Formats the value using the given formatter.

impl PartialEq for InvalidCodepoint
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for InvalidCodepoint
[src]

impl Error for InvalidCodepoint
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for InvalidCodepoint
[src]

Formats the value using the given formatter. Read more