pub trait EdgeMut<'graph> {
type Graph: GraphMut;
// Required methods
fn new(
id: <Self::Graph as Graph>::EdgeId,
graph: &'graph mut Self::Graph,
) -> Self;
fn id(&self) -> <Self::Graph as Graph>::EdgeId;
fn graph(&mut self) -> &mut Self::Graph;
fn from_id(&self) -> <Self::Graph as Graph>::NodeId;
fn to_id(&self) -> <Self::Graph as Graph>::NodeId;
fn set_from(&mut self, node: <Self::Graph as Graph>::NodeId);
// Provided methods
fn from(&mut self) -> <Self::Graph as GraphMut>::NodeMut<'_> { ... }
fn to(&mut self) -> <Self::Graph as GraphMut>::NodeMut<'_> { ... }
fn as_ref(&mut self) -> <Self::Graph as Graph>::Edge<'_> { ... }
}Required Associated Types§
Required Methods§
fn new( id: <Self::Graph as Graph>::EdgeId, graph: &'graph mut Self::Graph, ) -> Self
Sourcefn from_id(&self) -> <Self::Graph as Graph>::NodeId
fn from_id(&self) -> <Self::Graph as Graph>::NodeId
Returns the source node’s id for this edge.
Provided Methods§
Sourcefn from(&mut self) -> <Self::Graph as GraphMut>::NodeMut<'_>
fn from(&mut self) -> <Self::Graph as GraphMut>::NodeMut<'_>
Returns mutable access to the source node for this edge.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".