pub struct Instruction {
pub out: Option<Variable>,
pub operation: Operation,
}
Expand description
An instruction that contains a right hand side Operation
and an optional out variable.
Fields§
§out: Option<Variable>
§operation: Operation
Implementations§
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<'de> Deserialize<'de> for Instruction
impl<'de> Deserialize<'de> for Instruction
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
Source§impl Display for Instruction
impl Display for Instruction
Source§impl From<Branch> for Instruction
impl From<Branch> for Instruction
Source§impl From<NonSemantic> for Instruction
impl From<NonSemantic> for Instruction
Source§fn from(value: NonSemantic) -> Self
fn from(value: NonSemantic) -> Self
Converts to this type from the input type.
Source§impl From<Synchronization> for Instruction
impl From<Synchronization> for Instruction
Source§fn from(value: Synchronization) -> Self
fn from(value: Synchronization) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Instruction
impl PartialEq for Instruction
Source§impl Serialize for Instruction
impl Serialize 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