pub enum Argument {
Qubit(String, i32),
Register(String),
}Expand description
Representation of arguments to the ASTNodes. These are never top level, thus they have been left to a seperate enum.
Variants§
Qubit(String, i32)
Represents a single qubit / bit argument. The string is the name of the register, and the integer is the index
Register(String)
Represents a register argument. The string is the name of the register.
Trait Implementations§
impl StructuralPartialEq for Argument
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
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