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