ab_riscv_primitives/
instructions.rs1pub mod rv32;
4pub mod rv64;
5#[cfg(test)]
6mod test_utils;
7pub mod utils;
8pub mod v;
9pub mod zicond;
10pub mod zicsr;
11
12use crate::registers::general_purpose::Register;
13use core::fmt;
14use core::marker::Destruct;
15
16pub const trait Instruction:
18 fmt::Display + fmt::Debug + [const] Destruct + Copy + Send + Sync + Sized
19{
20 type Reg: Register;
22
23 fn try_decode(instruction: u32) -> Option<Self>;
25
26 fn alignment() -> u8;
28
29 fn size(&self) -> u8;
31}