pub struct CustomGate {
pub name: String,
pub args: Vec<String>,
pub definition: Box<SerialCircuit>,
}
Expand description
A gate defined by a circuit.
Previously known as CompositeGate
.
Fields§
§name: String
Name of the composite gate.
args: Vec<String>
Expressions corresponding to parameter values of the composite gate, if it has parameters.
definition: Box<SerialCircuit>
The circuit defining the gate.
Trait Implementations§
Source§impl Clone for CustomGate
impl Clone for CustomGate
Source§fn clone(&self) -> CustomGate
fn clone(&self) -> CustomGate
Returns a duplicate of the value. Read more
1.0.0 · 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 CustomGate
impl Debug for CustomGate
Source§impl<'de> Deserialize<'de> for CustomGate
impl<'de> Deserialize<'de> for CustomGate
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 PartialEq for CustomGate
impl PartialEq for CustomGate
Source§impl Serialize for CustomGate
impl Serialize for CustomGate
impl StructuralPartialEq for CustomGate
Auto Trait Implementations§
impl Freeze for CustomGate
impl RefUnwindSafe for CustomGate
impl Send for CustomGate
impl Sync for CustomGate
impl Unpin for CustomGate
impl UnwindSafe for CustomGate
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