pub trait NodeId: Eq + Clone {
type IdN: Eq + NodeId;
// Required methods
fn as_id(&self) -> &Self::IdN;
unsafe fn from_id(id: Self::IdN) -> Self;
unsafe fn from_ref_id(id: &Self::IdN) -> &Self;
}
pub trait NodeId: Eq + Clone {
type IdN: Eq + NodeId;
// Required methods
fn as_id(&self) -> &Self::IdN;
unsafe fn from_id(id: Self::IdN) -> Self;
unsafe fn from_ref_id(id: &Self::IdN) -> &Self;
}