pub enum PcodeErrorTy {
RangeOutOfBounds {
range: Range<usize>,
available: usize,
},
ArgumentCountMismatch {
expected: usize,
actual: usize,
},
UnknownSize,
UnknownMacro(Box<str>),
MultipleExports,
ExportNotLast,
FunctionStatement,
Unsupported(Box<str>),
}Expand description
The kind of a PcodeError.
Variants§
RangeOutOfBounds
A bit range extends past the end of the value it indexes.
Fields
§
available: usizeHow many bits the indexed value actually has.
PcodeError::range_out_of_bounds has no size to hand and leaves
this zero.
ArgumentCountMismatch
A macro was invoked with the wrong number of arguments.
Fields
UnknownSize
Could not determine the size of an expression.
UnknownMacro(Box<str>)
A macro was invoked but never defined.
MultipleExports
A macro definition contains more than one export.
ExportNotLast
The export statement is not the last statement in a macro definition.
FunctionStatement
A statement-only construct was used where an expression was expected.
Unsupported(Box<str>)
Valid SLEIGH that this crate does not implement.
Trait Implementations§
Source§impl Debug for PcodeErrorTy
impl Debug for PcodeErrorTy
impl Eq for PcodeErrorTy
Source§impl PartialEq for PcodeErrorTy
impl PartialEq for PcodeErrorTy
impl StructuralPartialEq for PcodeErrorTy
Auto Trait Implementations§
impl Freeze for PcodeErrorTy
impl RefUnwindSafe for PcodeErrorTy
impl Send for PcodeErrorTy
impl Sync for PcodeErrorTy
impl Unpin for PcodeErrorTy
impl UnsafeUnpin for PcodeErrorTy
impl UnwindSafe for PcodeErrorTy
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