pub enum BasePass {
StandardPass {
pass: StandardPass,
},
SequencePass {
pass: SequencePass,
},
RepeatPass {
pass: RepeatPass,
},
RepeatUntilSatisfiedPass {
pass: RepeatUntilSatisfiedPass,
},
}Expand description
A pass in a TKET circuit.
Variants§
StandardPass
A standard pass.
Fields
§
pass: StandardPassThe pass data.
SequencePass
A sequence of passes.
Fields
§
pass: SequencePassThe pass data.
RepeatPass
A pass that iterates an internal pass until no further change.
Fields
§
pass: RepeatPassThe pass data.
RepeatUntilSatisfiedPass
A pass that iterates an internal pass until some predicate is satisfied.
Fields
§
pass: RepeatUntilSatisfiedPassThe pass data.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BasePass
impl<'de> Deserialize<'de> for BasePass
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 From<RepeatPass> for BasePass
impl From<RepeatPass> for BasePass
Source§fn from(value: RepeatPass) -> Self
fn from(value: RepeatPass) -> Self
Converts to this type from the input type.
Source§impl From<RepeatUntilSatisfiedPass> for BasePass
impl From<RepeatUntilSatisfiedPass> for BasePass
Source§fn from(value: RepeatUntilSatisfiedPass) -> Self
fn from(value: RepeatUntilSatisfiedPass) -> Self
Converts to this type from the input type.
Source§impl From<SequencePass> for BasePass
impl From<SequencePass> for BasePass
Source§fn from(value: SequencePass) -> Self
fn from(value: SequencePass) -> Self
Converts to this type from the input type.
Source§impl From<StandardPass> for BasePass
impl From<StandardPass> for BasePass
Source§fn from(value: StandardPass) -> Self
fn from(value: StandardPass) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for BasePass
Auto Trait Implementations§
impl Freeze for BasePass
impl RefUnwindSafe for BasePass
impl Send for BasePass
impl Sync for BasePass
impl Unpin for BasePass
impl UnwindSafe for BasePass
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