pub enum Error {
ValueTooLarge,
BufferTooSmall,
Truncated,
TooLong,
}Variants§
ValueTooLarge
The value exceeds MAX_VALUE.
BufferTooSmall
The output buffer cannot hold the encoded value.
Truncated
The input ended before the final (continuation-clear) byte.
TooLong
A third byte carried a continuation bit, exceeding the three-byte limit.
Trait Implementations§
Source§impl From<Error> for ParseError
impl From<Error> for ParseError
Source§impl From<Error> for WriteError
impl From<Error> for WriteError
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)