pub trait Embedding<V: Vertex, D: Dart, F: Face, VI: Iterator<Item = V>, DI: Iterator<Item = D>, FI: Iterator<Item = F>, T: GraphDCEL<V, D, F, VI, DI, FI>> {
// Required method
fn embed(graph: StableGraph<(), (), Undirected>) -> T;
}
Expand description
The Embedding trait is implemented by all embedding algorithms
Required Methods§
Sourcefn embed(graph: StableGraph<(), (), Undirected>) -> T
fn embed(graph: StableGraph<(), (), Undirected>) -> T
Receives a graph as an Argument an returns the embedding
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.