pub trait Gate:
Send
+ Sync
+ Debug {
// Required methods
fn dimensions(&self) -> &[ParameterName];
fn contains(&self, coords: &[f64]) -> bool;
fn gate_id(&self) -> &GateId;
fn parent_id(&self) -> Option<&GateId>;
}Required Methods§
fn dimensions(&self) -> &[ParameterName]
fn contains(&self, coords: &[f64]) -> bool
fn gate_id(&self) -> &GateId
fn parent_id(&self) -> Option<&GateId>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".