hugr_core::core

Trait PortIndex

source
pub trait PortIndex {
    // Required method
    fn index(self) -> usize;
}
Expand description

A trait for getting the undirected index of a port.

Required Methods§

source

fn index(self) -> usize

Returns the offset of the port.

Implementations on Foreign Types§

source§

impl PortIndex for usize

source§

fn index(self) -> usize

Implementors§