[][src]Struct zydis::enums::OperandAction

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

Implementations

impl OperandAction[src]

pub const READ: OperandAction[src]

pub const WRITE: OperandAction[src]

pub const CONDREAD: OperandAction[src]

pub const CONDWRITE: OperandAction[src]

pub const READWRITE: OperandAction[src]

pub const CONDREAD_CONDWRITE: OperandAction[src]

pub const READ_CONDWRITE: OperandAction[src]

pub const CONDREAD_WRITE: OperandAction[src]

pub const MASK_READ: OperandAction[src]

pub const MASK_WRITE: OperandAction[src]

pub fn empty() -> OperandAction[src]

Returns an empty set of flags.

pub fn all() -> OperandAction[src]

Returns the set containing all flags.

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

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<OperandAction>[src]

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

pub fn from_bits_truncate(bits: u32) -> OperandAction[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: OperandAction) -> bool[src]

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

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

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

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

Inserts the specified flags in-place.

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

Removes the specified flags in-place.

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

Toggles the specified flags in-place.

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

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

Trait Implementations

impl Binary for OperandAction[src]

impl BitAnd<OperandAction> for OperandAction[src]

type Output = OperandAction

The resulting type after applying the & operator.

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

Returns the intersection between the two sets of flags.

impl BitAndAssign<OperandAction> for OperandAction[src]

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

Disables all flags disabled in the set.

impl BitOr<OperandAction> for OperandAction[src]

type Output = OperandAction

The resulting type after applying the | operator.

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

Returns the union of the two sets of flags.

impl BitOrAssign<OperandAction> for OperandAction[src]

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

Adds the set of flags.

impl BitXor<OperandAction> for OperandAction[src]

type Output = OperandAction

The resulting type after applying the ^ operator.

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

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

impl BitXorAssign<OperandAction> for OperandAction[src]

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

Toggles the set of flags.

impl Clone for OperandAction[src]

impl Copy for OperandAction[src]

impl Debug for OperandAction[src]

impl Eq for OperandAction[src]

impl Extend<OperandAction> for OperandAction[src]

impl FromIterator<OperandAction> for OperandAction[src]

impl Hash for OperandAction[src]

impl LowerHex for OperandAction[src]

impl Not for OperandAction[src]

type Output = OperandAction

The resulting type after applying the ! operator.

fn not(self) -> OperandAction[src]

Returns the complement of this set of flags.

impl Octal for OperandAction[src]

impl Ord for OperandAction[src]

impl PartialEq<OperandAction> for OperandAction[src]

impl PartialOrd<OperandAction> for OperandAction[src]

impl StructuralEq for OperandAction[src]

impl StructuralPartialEq for OperandAction[src]

impl Sub<OperandAction> for OperandAction[src]

type Output = OperandAction

The resulting type after applying the - operator.

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

Returns the set difference of the two sets of flags.

impl SubAssign<OperandAction> for OperandAction[src]

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

Disables all flags enabled in the set.

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