Struct osiris_process::operation::Operation
source · pub struct Operation<T> { /* private fields */ }Expand description
This struct represents an Instruction template.
Implementations§
source§impl<T> Operation<T>
impl<T> Operation<T>
pub fn new( id: OperationId, name: String, has_target: bool, argument: ArgumentType, function: OperationFn<T> ) -> Self
pub fn id(&self) -> OperationId
pub fn name(&self) -> String
pub fn argument_type(&self) -> ArgumentType
pub fn has_target(&self) -> bool
pub fn to_asm_template(&self) -> String
pub fn call( &self, cpu: &mut Cpu, scheme: InstructionScheme ) -> OperationResult<T>
pub fn call_debug( &self, cpu: &mut Cpu, scheme: InstructionScheme ) -> OperationResult<T>
pub fn to_debug_asm(&self, scheme: InstructionScheme) -> String
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Operation<T>
impl<T> RefUnwindSafe for Operation<T>
impl<T> Send for Operation<T>
impl<T> Sync for Operation<T>
impl<T> Unpin for Operation<T>
impl<T> UnwindSafe for Operation<T>
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