pub enum Warning {
ControlCharacterWhileParsingString(usize),
DecodeUtf16(usize, u16),
InvalidEscape(usize),
UnexpectedEndOfString(usize),
}Expand description
The kind of Warning that can happen when decoding a &str.
Variants§
ControlCharacterWhileParsingString(usize)
Control chars were found while parsing a JSON string.
DecodeUtf16(usize, u16)
A UTF-16 surrogate pair failed to decode.
InvalidEscape(usize)
A string contains invalid escape chars.
UnexpectedEndOfString(usize)
The String ended before the parser expected.
Trait Implementations§
Source§impl Ord for Warning
impl Ord for Warning
Source§impl PartialOrd for Warning
impl PartialOrd for Warning
Source§impl Warning for Warning
impl Warning for Warning
Source§fn id(&self) -> SmartString
fn id(&self) -> SmartString
A human readable identifier for each Warning.
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnwindSafe for Warning
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