#[non_exhaustive]pub enum MarchError<'a> {
InvalidBase,
UnsupportedExtension(&'a str),
Conflict(Conflict),
}Expand description
An error parsing an ISA string with Decoder::from_march.
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.
InvalidBase
The string does not start with rv32, rv64 or rv128 followed by
i, e or g.
UnsupportedExtension(&'a str)
The string names an extension that disc-v does not support.
Conflict(Conflict)
The string names two extensions that conflict.
Trait Implementations§
Source§impl<'a> Clone for MarchError<'a>
impl<'a> Clone for MarchError<'a>
impl<'a> Copy for MarchError<'a>
Source§impl<'a> Debug for MarchError<'a>
impl<'a> Debug for MarchError<'a>
Source§impl Display for MarchError<'_>
impl Display for MarchError<'_>
impl<'a> Eq for MarchError<'a>
Source§impl Error for MarchError<'_>
impl Error for MarchError<'_>
1.30.0 · 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<'a> Hash for MarchError<'a>
impl<'a> Hash for MarchError<'a>
Source§impl<'a> PartialEq for MarchError<'a>
impl<'a> PartialEq for MarchError<'a>
impl<'a> StructuralPartialEq for MarchError<'a>
Auto Trait Implementations§
impl<'a> Freeze for MarchError<'a>
impl<'a> RefUnwindSafe for MarchError<'a>
impl<'a> Send for MarchError<'a>
impl<'a> Sync for MarchError<'a>
impl<'a> Unpin for MarchError<'a>
impl<'a> UnsafeUnpin for MarchError<'a>
impl<'a> UnwindSafe for MarchError<'a>
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