ptnet_core/structured.rs
1/*!
2This module provides an extension to model structured (hierarchical) nets.
3
4TBD
5
6*/
7
8use crate::net::Net;
9
10// ------------------------------------------------------------------------------------------------
11// Public Types
12// ------------------------------------------------------------------------------------------------
13
14pub trait StructuredNet: Net {
15 fn parent(&self) -> Option<&Self>;
16 fn subnets(&self) -> Vec<&Self>;
17}