pub enum Error<'g> {
InvalidIndex(usize, &'g [u8]),
UnexpectedContinuationByte(u8, usize, Option<usize>, Option<usize>, &'g [u8]),
Utf8Error(usize, &'g [u8], String),
MemoryError(MemoryError),
}Variants§
InvalidIndex(usize, &'g [u8])
UnexpectedContinuationByte(u8, usize, Option<usize>, Option<usize>, &'g [u8])
Utf8Error(usize, &'g [u8], String)
MemoryError(MemoryError)
Implementations§
Trait Implementations§
Source§impl<'g> Error for Error<'g>
impl<'g> Error for Error<'g>
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()
impl<'g> Eq for Error<'g>
impl<'g> StructuralPartialEq for Error<'g>
Auto Trait Implementations§
impl<'g> Freeze for Error<'g>
impl<'g> RefUnwindSafe for Error<'g>
impl<'g> Send for Error<'g>
impl<'g> Sync for Error<'g>
impl<'g> Unpin for Error<'g>
impl<'g> UnwindSafe for Error<'g>
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