pub trait NodeRef: Copy {
type NodeId;
type Weight;
// Required methods
fn id(&self) -> Self::NodeId;
fn weight(&self) -> &Self::Weight;
}Expand description
A node reference.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".