pub enum AccessType {
ReadOnly,
WriteOnly,
ReadWrite,
}Expand description
Represents how the operand 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 AccessType
impl AccessType
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 AccessType
impl Clone for AccessType
Source§fn clone(&self) -> AccessType
fn clone(&self) -> AccessType
Returns a duplicate 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 AccessType
impl Debug for AccessType
Source§impl Hash for AccessType
impl Hash for AccessType
Source§impl PartialEq for AccessType
impl PartialEq for AccessType
Source§impl TryFrom<cs_ac_type> for AccessType
impl TryFrom<cs_ac_type> for AccessType
impl Copy for AccessType
impl Eq for AccessType
impl StructuralPartialEq for AccessType
Auto Trait Implementations§
impl Freeze for AccessType
impl RefUnwindSafe for AccessType
impl Send for AccessType
impl Sync for AccessType
impl Unpin for AccessType
impl UnwindSafe for AccessType
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