pub enum L2Kind {
NoTypetree,
CheckRead,
OutOfBounds,
NegativeLength,
RefType,
Encode,
Other,
}Expand description
The canonical dump’s L2 error kinds (CANONICAL_DUMP.md section 4.3).
Variants§
NoTypetree
No tree: none embedded, none from a provider.
CheckRead
The read ended bytes_read bytes in, and that is not byte_size.
OutOfBounds
A read (not an alignment) past the object’s end, on the Boost path.
NegativeLength
A negative length.
RefType
A ReferencedObject whose type is not in ref_types, or no ref_types.
Encode
The value does not fit its tree (an encoder bug).
Other
Anything else, our limits included.
Implementations§
Trait Implementations§
impl Copy for L2Kind
impl Eq for L2Kind
impl StructuralPartialEq for L2Kind
Auto Trait Implementations§
impl Forget for L2Kind
impl Freeze for L2Kind
impl Move for L2Kind
impl RefUnwindSafe for L2Kind
impl Send for L2Kind
impl Sync for L2Kind
impl Unpin for L2Kind
impl UnsafeUnpin for L2Kind
impl UnwindSafe for L2Kind
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