pub enum ParsedStatement {
QReg(String, usize),
CReg(String, usize),
Gate(String, Vec<(String, usize)>, Vec<f64>),
Measure((String, usize), (String, usize)),
Barrier(Vec<(String, usize)>),
Reset((String, usize)),
Ignore,
}Expand description
Internal AST for parsed statements
Variants§
QReg(String, usize)
CReg(String, usize)
Gate(String, Vec<(String, usize)>, Vec<f64>)
Measure((String, usize), (String, usize))
Barrier(Vec<(String, usize)>)
Reset((String, usize))
Ignore
Trait Implementations§
Source§impl Clone for ParsedStatement
impl Clone for ParsedStatement
Source§fn clone(&self) -> ParsedStatement
fn clone(&self) -> ParsedStatement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParsedStatement
impl Debug for ParsedStatement
Source§impl PartialEq for ParsedStatement
impl PartialEq for ParsedStatement
Source§fn eq(&self, other: &ParsedStatement) -> bool
fn eq(&self, other: &ParsedStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParsedStatement
Auto Trait Implementations§
impl Freeze for ParsedStatement
impl RefUnwindSafe for ParsedStatement
impl Send for ParsedStatement
impl Sync for ParsedStatement
impl Unpin for ParsedStatement
impl UnsafeUnpin for ParsedStatement
impl UnwindSafe for ParsedStatement
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