Skip to main content

WithDummy

Trait WithDummy 

Source
trait WithDummy: NodeIndexable {
    // Required methods
    fn dummy_idx(&self) -> usize;
    fn try_from_index(&self, i: usize) -> Option<Self::NodeId>;
}

Required Methods§

Source

fn dummy_idx(&self) -> usize

Source

fn try_from_index(&self, i: usize) -> Option<Self::NodeId>

Convert i to a node index, returns None for the dummy node

Implementors§