Enum encode_unicode::error::InvalidCodepoint
[−]
[src]
pub enum InvalidCodepoint { Utf16Reserved, TooHigh, }
Reasons why an u32
is not a valid UTF codepoint.
Variants
Utf16Reserved
It's reserved for UTF-16 surrogate pairs."
TooHigh
It's higher than the highest codepoint (which is 0x10ffff).
Methods
impl InvalidCodepoint
[src]
fn error_range(self) -> (u32, u32)
Get the range of values for which this error would be given.
Trait Implementations
impl Clone for InvalidCodepoint
[src]
fn clone(&self) -> InvalidCodepoint
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for InvalidCodepoint
[src]
impl Debug for InvalidCodepoint
[src]
impl PartialEq for InvalidCodepoint
[src]
fn eq(&self, __arg_0: &InvalidCodepoint) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for InvalidCodepoint
[src]
impl Error for InvalidCodepoint
[src]
fn description(&self) -> &'static str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more