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>; }