pub struct DatumError {
pub kind: DatumErrorKind,
pub offset: DatumOffset,
pub message: &'static str,
}Expand description
Datum error. Notably, writing uses a different error type, so these are read-focused.
Fields§
§kind: DatumErrorKindKind of error. Useful to distingulish EOF errors from non-EOF errors.
offset: DatumOffsetError occurred at this offset. Offsets are entirely caller-supplied, except when iterator wrapping is in use.
message: &'static strMessage.
Trait Implementations§
Source§impl Clone for DatumError
impl Clone for DatumError
Source§fn clone(&self) -> DatumError
fn clone(&self) -> DatumError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatumError
impl Debug for DatumError
Source§impl Display for DatumError
impl Display for DatumError
Source§impl Error for DatumError
Available on crate feature std only.
impl Error for DatumError
Available on crate feature
std only.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
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy for DatumError
Auto Trait Implementations§
impl Freeze for DatumError
impl RefUnwindSafe for DatumError
impl Send for DatumError
impl Sync for DatumError
impl Unpin for DatumError
impl UnwindSafe for DatumError
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