pub struct Command<P = String> {
pub op: Operation<P>,
pub args: Vec<ElementId>,
pub opgroup: Option<String>,
}
Expand description
Operation applied in a circuit, with defined arguments.
Fields§
§op: Operation<P>
The operation to be applied.
args: Vec<ElementId>
The arguments to the operation.
May correspond to either Qubit
s or Bit
s, depending on the operation.
opgroup: Option<String>
Operation group identifier.
Implementations§
Trait Implementations§
Source§impl<'de, P> Deserialize<'de> for Command<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for Command<P>where
P: Deserialize<'de>,
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<P> StructuralPartialEq for Command<P>
Auto Trait Implementations§
impl<P> Freeze for Command<P>
impl<P> RefUnwindSafe for Command<P>where
P: RefUnwindSafe,
impl<P> Send for Command<P>where
P: Send,
impl<P> Sync for Command<P>where
P: Sync,
impl<P> Unpin for Command<P>where
P: Unpin,
impl<P> UnwindSafe for Command<P>where
P: UnwindSafe,
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