pub enum SpecError {
Io(Error),
Json(Error),
SetNotFound(String),
MalformedBits {
context: &'static str,
value: String,
},
WidthMismatch {
context: &'static str,
expected: usize,
got: usize,
},
}Expand description
Errors produced while reading and normalizing AARCHMRS data.
Variants§
Io(Error)
IO failure while reading a specification file.
Json(Error)
JSON parse failure.
SetNotFound(String)
Requested instruction set is not present.
MalformedBits
Malformed bit value encountered in the source.
WidthMismatch
Range/bit-string width mismatch.
Trait Implementations§
Source§impl Error for SpecError
impl Error for SpecError
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()
Auto Trait Implementations§
impl Freeze for SpecError
impl !RefUnwindSafe for SpecError
impl Send for SpecError
impl Sync for SpecError
impl Unpin for SpecError
impl UnsafeUnpin for SpecError
impl !UnwindSafe for SpecError
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