pub struct Encoding {
pub mnemonic: &'static str,
pub args: &'static [Kind],
pub fits: Fits,
pub size: Size,
pub opcode: &'static [u8],
pub fields: Fields,
pub imm: ImmSize,
}Expand description
One instruction of the machine, as a processor reads it.
Fields§
§mnemonic: &'static strThe mnemonic, which is the one Written carries.
args: &'static [Kind]What each of its arguments is, in the order they are written.
fits: FitsWhich immediates this row is for.
size: SizeWhat the prefixes say the operands are.
opcode: &'static [u8]The bytes of the opcode itself, in front of everything the arguments decide.
fields: FieldsWhere the arguments go in the byte that addresses them.
imm: ImmSizeThe immediate behind the rest of it.
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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