1 2 3 4 5 6
use crate::graph::NodeId; pub trait Identifiable: Sized { fn get_id(&self) -> NodeId<Self>; fn set_id(&mut self, value: NodeId<Self>); }