pub struct Instruction { /* private fields */ }
Implementations§
Source§impl Instruction
impl Instruction
pub fn new(raw: u64) -> Self
pub fn to_u64(&self) -> u64
pub fn from_word(word: Word) -> Self
pub fn to_word(&self) -> Word
pub fn operation_to_instruction<T>( &self, operation: &Operation<T>, ) -> InstructionScheme
pub fn identifier(&self) -> OperationId
pub fn target(&self) -> RegisterId
pub fn argument(&self, arg_type: ArgumentType) -> ArgumentScheme
pub fn scheme(&self, argument: ArgumentType) -> InstructionScheme
pub fn matches<T>(&self, operation: &Operation<T>) -> bool
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
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 Instruction
impl Debug for Instruction
Source§impl PartialEq for Instruction
impl PartialEq for Instruction
impl Copy for Instruction
impl Eq for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
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