Enum cambridge_asm::inst::Op
source · pub enum Op {
Fail(String),
Acc,
Ix,
Cmp,
Ar,
Indirect(Box<Op>),
Addr(usize),
Literal(usize),
Gpr(usize),
MultiOp(Vec<Op>),
Null,
}
Expand description
Represents all possible types of pseudoassembly operands
Variants§
Fail(String)
Acc
Ix
Cmp
Ar
Indirect(Box<Op>)
Addr(usize)
Literal(usize)
Gpr(usize)
MultiOp(Vec<Op>)
Null
Implementations§
source§impl Op
impl Op
pub fn is_none(&self) -> bool
pub fn is_register(&self) -> bool
pub fn is_read_write(&self) -> bool
pub fn is_usizeable(&self) -> bool
Trait Implementations§
source§impl<'__de> BorrowDecode<'__de> for Op
impl<'__de> BorrowDecode<'__de> for Op
source§fn borrow_decode<__D: BorrowDecoder<'__de>>(
decoder: &mut __D
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
source§impl<'de> Deserialize<'de> for Op
impl<'de> Deserialize<'de> for Op
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Op
impl StructuralEq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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