NetworkShortcuts

Trait NetworkShortcuts 

Source
pub trait NetworkShortcuts: Network {
    // Provided methods
    fn primary_inputs(&self) -> Box<dyn Iterator<Item = Self::NodeId> + '_> { ... }
    fn primary_outputs(&self) -> Box<dyn Iterator<Item = Self::Signal> + '_> { ... }
}
Expand description

Convenience functions implemented on top of the Network trait.

Provided Methods§

Source

fn primary_inputs(&self) -> Box<dyn Iterator<Item = Self::NodeId> + '_>

Iterator over all primary inputs of the network.

Source

fn primary_outputs(&self) -> Box<dyn Iterator<Item = Self::Signal> + '_>

Iterator over all primary outputs of the network.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> NetworkShortcuts for T
where T: Network,