[][src]Struct x64_asm::REXPrefix

pub struct REXPrefix {
    pub w_bit: bool,
    pub r_bit: bool,
    pub x_bit: bool,
    pub b_bit: bool,
}

using for 64-bit mode.

Fields

w_bit: bool

related with operand-size.

r_bit: bool

related with reg-field in ModR/M

x_bit: bool

related with index-field in ModR/M

b_bit: bool

related with r/m-field in ModR/M, base in SIB-byte, reg-field in opcode

Implementations

impl REXPrefix[src]

pub const BASE: u8[src]

pub const W_BIT: u8[src]

pub const R_BIT: u8[src]

pub const X_BIT: u8[src]

pub const B_BIT: u8[src]

pub fn new(w: bool, r: bool, x: bool, b: bool) -> Self[src]

pub fn new_from_mem(is_64bit: bool, rm: &Operand) -> Self[src]

pub fn new_from_mem_and_reg(
    is_64bit: bool,
    reg: &GeneralPurposeRegister,
    rm: &Operand
) -> Self
[src]

pub fn to_byte(&self) -> u8[src]

pub fn b_bit_from_reg(reg: &GeneralPurposeRegister) -> u8[src]

pub fn r_bit_from_reg(reg: &GeneralPurposeRegister) -> u8[src]

Trait Implementations

impl Clone for REXPrefix[src]

impl Copy for REXPrefix[src]

impl Debug for REXPrefix[src]

impl Display for REXPrefix[src]

impl Eq for REXPrefix[src]

impl Ord for REXPrefix[src]

impl PartialEq<REXPrefix> for REXPrefix[src]

impl PartialOrd<REXPrefix> for REXPrefix[src]

impl StructuralEq for REXPrefix[src]

impl StructuralPartialEq for REXPrefix[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.