Add Copy and Eq traits to GraphTopology::Edge
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
// TODO: Split out GraphTopologyAddition trait.
|
// TODO: Split out GraphTopologyAddition trait.
|
||||||
pub trait GraphTopology {
|
pub trait GraphTopology {
|
||||||
type Vertex: Copy + Eq;
|
type Vertex: Copy + Eq;
|
||||||
type Edge;
|
type Edge: Copy + Eq;
|
||||||
|
|
||||||
fn vertex_count(&self) -> usize;
|
fn vertex_count(&self) -> usize;
|
||||||
fn edge_count(&self) -> usize;
|
fn edge_count(&self) -> usize;
|
||||||
|
|||||||
Reference in New Issue
Block a user