pub trait EdgeRef: Copy {
type NodeId;
type EdgeId;
type Weight;
// Required methods
fn source(&self) -> Self::NodeId;
fn target(&self) -> Self::NodeId;
fn weight(&self) -> &Self::Weight;
fn id(&self) -> Self::EdgeId;
}
Expand description
An edge reference.
Edge references are used by traits IntoEdges
and IntoEdgeReferences
.
Required Associated Types§
Required Methods§
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.