[][src]Struct zydis::enums::InstructionAttributes

#[repr(transparent)]pub struct InstructionAttributes { /* fields omitted */ }

Implementations

impl InstructionAttributes[src]

pub const HAS_MODRM: InstructionAttributes[src]

pub const HAS_SIB: InstructionAttributes[src]

pub const HAS_REX: InstructionAttributes[src]

pub const HAS_XOP: InstructionAttributes[src]

pub const HAS_VEX: InstructionAttributes[src]

pub const HAS_EVEX: InstructionAttributes[src]

pub const HAS_MVEX: InstructionAttributes[src]

pub const IS_RELATIVE: InstructionAttributes[src]

pub const IS_PRIVILEGED: InstructionAttributes[src]

pub const ACCEPTS_LOCK: InstructionAttributes[src]

pub const ACCEPTS_REP: InstructionAttributes[src]

pub const ACCEPTS_REPE: InstructionAttributes[src]

pub const ACCEPTS_REPZ: InstructionAttributes[src]

pub const ACCEPTS_REPNE: InstructionAttributes[src]

pub const ACCEPTS_REPNZ: InstructionAttributes[src]

pub const ACCEPTS_BND: InstructionAttributes[src]

pub const ACCEPTS_XACQUIRE: InstructionAttributes[src]

pub const ACCEPTS_XRELEASE: InstructionAttributes[src]

pub const ACCEPTS_HLE_WITHOUT_LOCK: InstructionAttributes[src]

pub const ACCEPTS_BRANCH_HINTS: InstructionAttributes[src]

pub const ACCEPTS_SEGMENT: InstructionAttributes[src]

pub const HAS_LOCK: InstructionAttributes[src]

pub const HAS_REP: InstructionAttributes[src]

pub const HAS_REPE: InstructionAttributes[src]

pub const HAS_REPZ: InstructionAttributes[src]

pub const HAS_REPNE: InstructionAttributes[src]

pub const HAS_REPNZ: InstructionAttributes[src]

pub const HAS_BND: InstructionAttributes[src]

pub const HAS_XACQUIRE: InstructionAttributes[src]

pub const HAS_XRELEASE: InstructionAttributes[src]

pub const HAS_BRANCH_NOT_TAKEN: InstructionAttributes[src]

pub const HAS_BRNACH_TAKEN: InstructionAttributes[src]

pub const HAS_SEGMENT_CS: InstructionAttributes[src]

pub const HAS_SEGMENT_SS: InstructionAttributes[src]

pub const HAS_SEGMENT_DS: InstructionAttributes[src]

pub const HAS_SEGMENT_ES: InstructionAttributes[src]

pub const HAS_SEGMENT_FS: InstructionAttributes[src]

pub const HAS_SEGMENT_GS: InstructionAttributes[src]

pub const HAS_SEGMENT: InstructionAttributes[src]

pub const HAS_OPERANDSIZE: InstructionAttributes[src]

pub const HAS_ADDRESSIZE: InstructionAttributes[src]

pub const CPUFLAG_ACCESS: InstructionAttributes[src]

pub const CPU_STATE_CR: InstructionAttributes[src]

pub const CPU_STATE_CW: InstructionAttributes[src]

pub const FPU_STATE_CR: InstructionAttributes[src]

pub const FPU_STATE_CW: InstructionAttributes[src]

pub const XMM_STATE_CR: InstructionAttributes[src]

pub const XMM_STATE_CW: InstructionAttributes[src]

pub fn empty() -> InstructionAttributes[src]

Returns an empty set of flags.

pub fn all() -> InstructionAttributes[src]

Returns the set containing all flags.

pub fn bits(&self) -> u64[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u64) -> Option<InstructionAttributes>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub fn from_bits_truncate(bits: u64) -> InstructionAttributes[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub fn intersects(&self, other: InstructionAttributes) -> bool[src]

Returns true if there are flags common to both self and other.

pub fn contains(&self, other: InstructionAttributes) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: InstructionAttributes)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: InstructionAttributes)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: InstructionAttributes)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: InstructionAttributes, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for InstructionAttributes[src]

impl BitAnd<InstructionAttributes> for InstructionAttributes[src]

type Output = InstructionAttributes

The resulting type after applying the & operator.

fn bitand(self, other: InstructionAttributes) -> InstructionAttributes[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<InstructionAttributes> for InstructionAttributes[src]

fn bitand_assign(&mut self, other: InstructionAttributes)[src]

Disables all flags disabled in the set.

impl BitOr<InstructionAttributes> for InstructionAttributes[src]

type Output = InstructionAttributes

The resulting type after applying the | operator.

fn bitor(self, other: InstructionAttributes) -> InstructionAttributes[src]

Returns the union of the two sets of flags.

impl BitOrAssign<InstructionAttributes> for InstructionAttributes[src]

fn bitor_assign(&mut self, other: InstructionAttributes)[src]

Adds the set of flags.

impl BitXor<InstructionAttributes> for InstructionAttributes[src]

type Output = InstructionAttributes

The resulting type after applying the ^ operator.

fn bitxor(self, other: InstructionAttributes) -> InstructionAttributes[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<InstructionAttributes> for InstructionAttributes[src]

fn bitxor_assign(&mut self, other: InstructionAttributes)[src]

Toggles the set of flags.

impl Clone for InstructionAttributes[src]

impl Copy for InstructionAttributes[src]

impl Debug for InstructionAttributes[src]

impl Eq for InstructionAttributes[src]

impl Extend<InstructionAttributes> for InstructionAttributes[src]

impl FromIterator<InstructionAttributes> for InstructionAttributes[src]

impl Hash for InstructionAttributes[src]

impl LowerHex for InstructionAttributes[src]

impl Not for InstructionAttributes[src]

type Output = InstructionAttributes

The resulting type after applying the ! operator.

fn not(self) -> InstructionAttributes[src]

Returns the complement of this set of flags.

impl Octal for InstructionAttributes[src]

impl Ord for InstructionAttributes[src]

impl PartialEq<InstructionAttributes> for InstructionAttributes[src]

impl PartialOrd<InstructionAttributes> for InstructionAttributes[src]

impl StructuralEq for InstructionAttributes[src]

impl StructuralPartialEq for InstructionAttributes[src]

impl Sub<InstructionAttributes> for InstructionAttributes[src]

type Output = InstructionAttributes

The resulting type after applying the - operator.

fn sub(self, other: InstructionAttributes) -> InstructionAttributes[src]

Returns the set difference of the two sets of flags.

impl SubAssign<InstructionAttributes> for InstructionAttributes[src]

fn sub_assign(&mut self, other: InstructionAttributes)[src]

Disables all flags enabled in the set.

impl UpperHex for InstructionAttributes[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, 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.