[][src]Struct x64_asm::ModRM

pub struct ModRM { /* fields omitted */ }

Implementations

impl ModRM[src]

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

pub fn new_mi(mode: AddressingMode, rm: &Operand) -> Self[src]

new MI Encoding.

pub fn new_mr(
    mode: AddressingMode,
    rm: &Operand,
    reg: &GeneralPurposeRegister
) -> Self
[src]

new MR Encoding.

pub fn new_rm(
    mode: AddressingMode,
    reg: &GeneralPurposeRegister,
    rm: &Operand
) -> Self
[src]

new RM Encoding.

pub fn mode_field(byte: u8) -> u8[src]

pub fn rm_field(byte: u8) -> u8[src]

pub fn reg_field(byte: u8) -> u8[src]

Trait Implementations

impl Clone for ModRM[src]

impl Copy for ModRM[src]

impl Debug for ModRM[src]

impl Eq for ModRM[src]

impl Ord for ModRM[src]

impl PartialEq<ModRM> for ModRM[src]

impl PartialOrd<ModRM> for ModRM[src]

impl StructuralEq for ModRM[src]

impl StructuralPartialEq for ModRM[src]

Auto Trait Implementations

impl RefUnwindSafe for ModRM

impl Send for ModRM

impl Sync for ModRM

impl Unpin for ModRM

impl UnwindSafe for ModRM

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, 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.