pub enum AttributesError {
OutOfRange {
from: u32,
kind: u32,
nodes: u32,
types: u32,
},
TooMany,
Io(Error),
Magic,
Version {
found: u32,
expected: u32,
},
Inconsistent,
Text(FromUtf8Error),
}Expand description
A failure while building, reading, or writing the attributes.
Variants§
OutOfRange
A row names a node or a type beyond the declared counts.
Fields
TooMany
More rows or strings than the u32 offsets address.
Io(Error)
An I/O failure.
Magic
The bytes do not start with the attributes magic.
Version
The layout version is not the one this build reads.
Inconsistent
The arrays are inconsistent.
Text(FromUtf8Error)
An interned string is not UTF-8.
Trait Implementations§
Source§impl Debug for AttributesError
impl Debug for AttributesError
Source§impl Display for AttributesError
impl Display for AttributesError
Source§impl Error for AttributesError
impl Error for AttributesError
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<Error> for AttributesError
impl From<Error> for AttributesError
Source§impl From<FromUtf8Error> for AttributesError
impl From<FromUtf8Error> for AttributesError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AttributesError
impl !UnwindSafe for AttributesError
impl Freeze for AttributesError
impl Send for AttributesError
impl Sync for AttributesError
impl Unpin for AttributesError
impl UnsafeUnpin for AttributesError
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