summaryrefslogtreecommitdiffstats
path: root/src/node.rs
blob: 3759259c017f8b0e72b9accc0824b1579010d460 (plain)
1
2
3
4
5
6
7
8
9
use crate::NodeId;

pub trait Node {
    type Id: NodeId;

    fn id(&self) -> &Self::Id;
    fn parent_ids(&self) -> Vec<Self::Id>;
}