Struct bytecheck::CharCheckError
source · pub struct CharCheckError {
pub invalid_value: u32,
}Expand description
An error resulting from an invalid character.
Characters are four bytes and may only have values from 0x0 to 0xD7FF
and 0xE000 to 0x10FFFF inclusive.
Fields§
§invalid_value: u32The u32 value of the invalid character
Trait Implementations§
source§impl Debug for CharCheckError
impl Debug for CharCheckError
source§impl Display for CharCheckError
impl Display for CharCheckError
source§impl Error for CharCheckError
impl Error for CharCheckError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Infallible> for CharCheckError
impl From<Infallible> for CharCheckError
source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.