#[non_exhaustive]pub enum RecordBlobError {
BadIndex(usize, usize),
BadByte(TryFromIntError),
}
Expand description
Potential errors when trying to extract a blob from a record.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadIndex(usize, usize)
The start index for the blob is invalid.
BadByte(TryFromIntError)
A field in the record is too large to fit in a byte.
Trait Implementations§
Source§impl Debug for RecordBlobError
impl Debug for RecordBlobError
Source§impl Display for RecordBlobError
impl Display for RecordBlobError
Source§impl Error for RecordBlobError
impl Error for RecordBlobError
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()
Source§impl From<RecordBlobError> for StrtabError
impl From<RecordBlobError> for StrtabError
Source§fn from(source: RecordBlobError) -> Self
fn from(source: RecordBlobError) -> Self
Converts to this type from the input type.
Source§impl From<RecordBlobError> for SymtabError
impl From<RecordBlobError> for SymtabError
Source§fn from(source: RecordBlobError) -> Self
fn from(source: RecordBlobError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for RecordBlobError
impl From<TryFromIntError> for RecordBlobError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RecordBlobError
impl RefUnwindSafe for RecordBlobError
impl Send for RecordBlobError
impl Sync for RecordBlobError
impl Unpin for RecordBlobError
impl UnwindSafe for RecordBlobError
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