Enum capstone::RegAccessType
source · pub enum RegAccessType {
ReadOnly,
WriteOnly,
ReadWrite,
}
Expand description
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.
Implementations§
source§impl RegAccessType
impl RegAccessType
sourcepub fn is_readable(self) -> bool
pub fn is_readable(self) -> bool
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.
sourcepub fn is_writable(self) -> bool
pub fn is_writable(self) -> bool
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§
source§impl Clone for RegAccessType
impl Clone for RegAccessType
source§fn clone(&self) -> RegAccessType
fn clone(&self) -> RegAccessType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RegAccessType
impl Debug for RegAccessType
source§impl Hash for RegAccessType
impl Hash for RegAccessType
source§impl PartialEq for RegAccessType
impl PartialEq for RegAccessType
source§fn eq(&self, other: &RegAccessType) -> bool
fn eq(&self, other: &RegAccessType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<cs_ac_type> for RegAccessType
impl TryFrom<cs_ac_type> for RegAccessType
impl Copy for RegAccessType
impl Eq for RegAccessType
impl StructuralPartialEq for RegAccessType
Auto Trait Implementations§
impl RefUnwindSafe for RegAccessType
impl Send for RegAccessType
impl Sync for RegAccessType
impl Unpin for RegAccessType
impl UnwindSafe for RegAccessType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more