pub enum DecodeError {
UNDEF,
NOP,
Unallocated,
Unpredictable,
ReservedHint,
Truncated,
}Expand description
Why a word decoded to no instruction, or why bytes held none.
Only the AArch32 encoding index marks rows UNPREDICTABLE or as reserved
hints. The A64 index does not, so such words decode as Unallocated.
Variants§
UNDEF
The architecture defines the encoding as UNDEFINED, which its own decode
pseudocode says by reaching Undefined().
NOP
The architecture defines the encoding as a NOP, which its own decode
pseudocode says by reaching ExecuteAsNOP().
Unallocated
The encoding is allocated to no instruction, either because no row of the index claims it or because a field holds a value its value table reserves.
Unpredictable
The index marks the encoding UNPREDICTABLE.
ReservedHint
The index marks the encoding a reserved hint, which behaves as a NOP and may be allocated later.
Truncated
The bytes ended before the instruction did. Only a decode from bytes returns this.
Trait Implementations§
Source§impl Clone for DecodeError
impl Clone for DecodeError
impl Copy for DecodeError
Source§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl Display for DecodeError
impl Display for DecodeError
impl Eq for DecodeError
Source§impl Error for DecodeError
impl Error for DecodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<DecodeError> for Status
Available on crate feature std only.
impl From<DecodeError> for Status
std only.