pub trait NodeConstraints:
Clone
+ Debug
+ Eq
+ PartialEq
+ Hash
+ PartialOrd
+ Ord { }Expand description
Trait defining the core constraints for node types in a DirectedGraph.
Nodes must implement this trait to be used in the directed graph. The trait aggregates
common Rust traits required for hashing, equality, ordering, cloning, and debugging—
all essential for graph storage and operations (e.g., IndexMap keys, set operations).
This trait is automatically implemented for all types that satisfy the underlying bounds, so you do not need to implement it manually for your custom node types.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.