pub struct Edge<T: GraphDefinition> {
pub origin: Node<T>,
pub target: Node<T>,
pub meta: Rc<T::EdgeMeta>,
pub graph_type: PhantomData<T>,
}
Fields§
§origin: Node<T>
§target: Node<T>
§meta: Rc<T::EdgeMeta>
§graph_type: PhantomData<T>
Implementations§
Trait Implementations§
Source§impl<T: GraphDefinition> Clone for Edge<T>
impl<T: GraphDefinition> Clone for Edge<T>
Source§impl<'a, T: GraphDefinition> GraphWalk<'a, Node<T>, Edge<T>> for ConcreteGraph<T>
impl<'a, T: GraphDefinition> GraphWalk<'a, Node<T>, Edge<T>> for ConcreteGraph<T>
Source§impl<T> Identifiable<EdgeIdentity<<T as GraphDefinition>::Id>> for Edge<T>where
T: GraphDefinition,
impl<T> Identifiable<EdgeIdentity<<T as GraphDefinition>::Id>> for Edge<T>where
T: GraphDefinition,
fn get_id(&self) -> EdgeIdentity<T::Id>
Source§impl<'a, T: GraphDefinition> Labeller<'a, Node<T>, Edge<T>> for ConcreteGraph<T>
impl<'a, T: GraphDefinition> Labeller<'a, Node<T>, Edge<T>> for ConcreteGraph<T>
Source§fn node_id(&'a self, n: &Node<T>) -> Id<'a>
fn node_id(&'a self, n: &Node<T>) -> Id<'a>
Maps
n
to a unique identifier with respect to self
. The
implementer is responsible for ensuring that the returned name
is a valid DOT identifier.Source§fn node_label(&'a self, n: &N) -> LabelText<'a>
fn node_label(&'a self, n: &N) -> LabelText<'a>
Maps
n
to a label that will be used in the rendered output.
The label need not be unique, and may be the empty string; the
default is just the output from node_id
.Source§fn edge_label(&'a self, e: &E) -> LabelText<'a>
fn edge_label(&'a self, e: &E) -> LabelText<'a>
Maps
e
to a label that will be used in the rendered output.
The label need not be unique, and may be the empty string; the
default is in fact the empty string.Source§fn node_style(&'a self, _n: &N) -> Style
fn node_style(&'a self, _n: &N) -> Style
Maps
n
to a style that will be used in the rendered output.Source§fn edge_end_arrow(&'a self, _e: &E) -> Arrow
fn edge_end_arrow(&'a self, _e: &E) -> Arrow
Maps
e
to arrow style that will be used on the end of an edge.
Defaults to default arrow style.Source§fn edge_start_arrow(&'a self, _e: &E) -> Arrow
fn edge_start_arrow(&'a self, _e: &E) -> Arrow
Maps
e
to arrow style that will be used on the end of an edge.
Defaults to default arrow style.Source§fn edge_style(&'a self, _e: &E) -> Style
fn edge_style(&'a self, _e: &E) -> Style
Maps
e
to a style that will be used in the rendered output.Source§impl<T: GraphDefinition> Ord for Edge<T>
impl<T: GraphDefinition> Ord for Edge<T>
Source§impl<T: GraphDefinition> PartialEq for Edge<T>
impl<T: GraphDefinition> PartialEq for Edge<T>
Source§impl<T: GraphDefinition> PartialOrd for Edge<T>
impl<T: GraphDefinition> PartialOrd for Edge<T>
impl<T: GraphDefinition> Eq for Edge<T>
Auto Trait Implementations§
impl<T> Freeze for Edge<T>
impl<T> !RefUnwindSafe for Edge<T>
impl<T> !Send for Edge<T>
impl<T> !Sync for Edge<T>
impl<T> Unpin for Edge<T>
impl<T> !UnwindSafe for Edge<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more