Struct ud

Source
#[repr(C)]
pub struct ud {
Show 48 fields pub inp_hook: Option<unsafe extern "C" fn(arg1: *mut ud) -> c_int>, pub inp_file: *mut FILE, pub inp_buf: *const u8, pub inp_buf_size: usize, pub inp_buf_index: usize, pub inp_curr: u8, pub inp_ctr: usize, pub inp_sess: [u8; 64], pub inp_end: c_int, pub inp_peek: c_int, pub translator: Option<unsafe extern "C" fn(arg1: *mut ud)>, pub insn_offset: u64, pub insn_hexcode: [c_char; 64], pub asm_buf: *mut c_char, pub asm_buf_size: usize, pub asm_buf_fill: usize, pub asm_buf_int: [c_char; 128], pub sym_resolver: Option<unsafe extern "C" fn(arg1: *mut ud, addr: u64, offset: *mut i64) -> *const c_char>, pub dis_mode: u8, pub pc: u64, pub vendor: u8, pub mnemonic: ud_mnemonic_code, pub operand: [ud_operand; 4], pub error: u8, pub _rex: u8, pub pfx_rex: u8, pub pfx_seg: u8, pub pfx_opr: u8, pub pfx_adr: u8, pub pfx_lock: u8, pub pfx_str: u8, pub pfx_rep: u8, pub pfx_repe: u8, pub pfx_repne: u8, pub opr_mode: u8, pub adr_mode: u8, pub br_far: u8, pub br_near: u8, pub have_modrm: u8, pub modrm: u8, pub modrm_offset: u8, pub vex_op: u8, pub vex_b1: u8, pub vex_b2: u8, pub primary_opcode: u8, pub user_opaque_data: *mut c_void, pub itab_entry: *mut (), pub le: *mut (),
}

Fields§

§inp_hook: Option<unsafe extern "C" fn(arg1: *mut ud) -> c_int>§inp_file: *mut FILE§inp_buf: *const u8§inp_buf_size: usize§inp_buf_index: usize§inp_curr: u8§inp_ctr: usize§inp_sess: [u8; 64]§inp_end: c_int§inp_peek: c_int§translator: Option<unsafe extern "C" fn(arg1: *mut ud)>§insn_offset: u64§insn_hexcode: [c_char; 64]§asm_buf: *mut c_char§asm_buf_size: usize§asm_buf_fill: usize§asm_buf_int: [c_char; 128]§sym_resolver: Option<unsafe extern "C" fn(arg1: *mut ud, addr: u64, offset: *mut i64) -> *const c_char>§dis_mode: u8§pc: u64§vendor: u8§mnemonic: ud_mnemonic_code§operand: [ud_operand; 4]§error: u8§_rex: u8§pfx_rex: u8§pfx_seg: u8§pfx_opr: u8§pfx_adr: u8§pfx_lock: u8§pfx_str: u8§pfx_rep: u8§pfx_repe: u8§pfx_repne: u8§opr_mode: u8§adr_mode: u8§br_far: u8§br_near: u8§have_modrm: u8§modrm: u8§modrm_offset: u8§vex_op: u8§vex_b1: u8§vex_b2: u8§primary_opcode: u8§user_opaque_data: *mut c_void§itab_entry: *mut ()§le: *mut ()

Auto Trait Implementations§

§

impl Freeze for ud

§

impl RefUnwindSafe for ud

§

impl !Send for ud

§

impl !Sync for ud

§

impl Unpin for ud

§

impl UnwindSafe for ud

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.