Skip to main content

Gate

Trait Gate 

Source
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§

Source

fn dimensions(&self) -> &[ParameterName]

Source

fn contains(&self, coords: &[f64]) -> bool

Source

fn gate_id(&self) -> &GateId

Source

fn parent_id(&self) -> Option<&GateId>

Implementors§