[][src]Enum capstone::RegAccessType

pub enum RegAccessType {
    ReadOnly,
    WriteOnly,
    ReadWrite,
}

Represents how the register is accessed.

Variants

ReadOnly

Operand read from memory or register.

WriteOnly

Operand write from memory or register.

ReadWrite

Operand read and write from memory or register.

Methods

impl RegAccessType[src]

pub fn is_readable(self) -> bool[src]

Returns whether the instruction reads from the operand.

Note that an instruction may read and write to the register simultaneously. In this case, the operand is also considered as readable.

pub fn is_writable(self) -> bool[src]

Returns whether the instruction writes from the operand.

Note that an instruction may read and write to the register simultaneously. In this case, the operand is also considered as writable.

Trait Implementations

impl Clone for RegAccessType[src]

impl Copy for RegAccessType[src]

impl Debug for RegAccessType[src]

impl Eq for RegAccessType[src]

impl Hash for RegAccessType[src]

impl PartialEq<RegAccessType> for RegAccessType[src]

impl StructuralEq for RegAccessType[src]

impl StructuralPartialEq for RegAccessType[src]

impl TryFrom<cs_ac_type> for RegAccessType[src]

type Error = ()

The type returned in the event of a conversion error.

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.