pub trait Node {
type Kind: PartialEq;
type Weight: Default + Copy + Ord + Add<Output = Self::Weight>;
// Required methods
fn kind(&self) -> Self::Kind;
fn weight(&self) -> Self::Weight;
}Expand description
An abstraction for a generic tree node.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".