Struct iced_x86::ConstantOffsets [−][src]
Contains the offsets of the displacement and immediate. Call Decoder::get_constant_offsets()
or
Encoder::get_constant_offsets()
to get the offsets of the constants after the instruction has been
decoded/encoded.
Implementations
impl ConstantOffsets
[src]
#[must_use]pub fn displacement_offset(&self) -> usize
[src]
The offset of the displacement, if any
#[must_use]pub fn displacement_size(&self) -> usize
[src]
Size in bytes of the displacement, or 0 if there’s no displacement
#[must_use]pub fn immediate_offset(&self) -> usize
[src]
The offset of the first immediate, if any.
This field can be invalid even if the operand has an immediate if it’s an immediate that isn’t part
of the instruction stream, eg. SHL AL,1
.
#[must_use]pub fn immediate_size(&self) -> usize
[src]
Size in bytes of the first immediate, or 0 if there’s no immediate
#[must_use]pub fn immediate_offset2(&self) -> usize
[src]
The offset of the second immediate, if any.
#[must_use]pub fn immediate_size2(&self) -> usize
[src]
Size in bytes of the second immediate, or 0 if there’s no second immediate
#[must_use]pub fn has_displacement(&self) -> bool
[src]
true
if displacement_offset()
and displacement_size()
are valid
#[must_use]pub fn has_immediate(&self) -> bool
[src]
true
if immediate_offset()
and immediate_size()
are valid
#[must_use]pub fn has_immediate2(&self) -> bool
[src]
true
if immediate_offset2()
and immediate_size2()
are valid
Trait Implementations
impl Clone for ConstantOffsets
[src]
fn clone(&self) -> ConstantOffsets
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ConstantOffsets
[src]
impl Debug for ConstantOffsets
[src]
impl Default for ConstantOffsets
[src]
fn default() -> ConstantOffsets
[src]
impl Eq for ConstantOffsets
[src]
impl Hash for ConstantOffsets
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ConstantOffsets> for ConstantOffsets
[src]
fn eq(&self, other: &ConstantOffsets) -> bool
[src]
fn ne(&self, other: &ConstantOffsets) -> bool
[src]
impl StructuralEq for ConstantOffsets
[src]
impl StructuralPartialEq for ConstantOffsets
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConstantOffsets
impl Send for ConstantOffsets
impl Sync for ConstantOffsets
impl Unpin for ConstantOffsets
impl UnwindSafe for ConstantOffsets
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,