pub struct BadCodepoint(pub u32);
Expand description
An invalid codepoint was encountered during decoding
Tuple Fields§
§0: u32
Trait Implementations§
Source§impl Debug for BadCodepoint
impl Debug for BadCodepoint
Source§impl Display for BadCodepoint
impl Display for BadCodepoint
Source§impl Error for BadCodepoint
impl Error for BadCodepoint
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<BadCodepoint> for DecodeError
impl From<BadCodepoint> for DecodeError
Source§fn from(source: BadCodepoint) -> Self
fn from(source: BadCodepoint) -> Self
Converts to this type from the input type.
Source§impl From<BadCodepoint> for ItemDecodeError
impl From<BadCodepoint> for ItemDecodeError
Source§fn from(source: BadCodepoint) -> Self
fn from(source: BadCodepoint) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BadCodepoint
impl RefUnwindSafe for BadCodepoint
impl Send for BadCodepoint
impl Sync for BadCodepoint
impl Unpin for BadCodepoint
impl UnwindSafe for BadCodepoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more