pub enum ErrorKind {
InsufficientSize,
BadAlign,
InvalidEnumTag,
InvalidData,
Other,
}
Expand description
Error kinds that can occur while working with flat types.
Variants§
InsufficientSize
The byte slice has insufficient size to be interpreted as required type.
BadAlign
Memory isn’t properly aligned to be interpreted as required type.
InvalidEnumTag
Enum binary representation contains index that doesn’t match any of possible enum states.
InvalidData
Invalid binary representation of the type.
Other
Any other error.
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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