pub trait Graph {
type State: Clone + Ord;
type Weight;
// Required method
fn successors(
&self,
state: &Self::State,
out: &mut Vec<(Self::State, Self::Weight)>,
);
}Expand description
An implicit graph with vector-valued edge weights.
Successors are generated on demand, so the graph never needs to be materialized.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".