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
sourceimpl<T: GraphDefinition> Clone for Edge<T>
impl<T: GraphDefinition> Clone for Edge<T>
sourceimpl<'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>
sourceimpl<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>
sourceimpl<'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>
sourcefn 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. Read more
sourcefn node_shape(&'a self, _node: &N) -> Option<LabelText<'a>>
fn node_shape(&'a self, _node: &N) -> Option<LabelText<'a>>
Maps n
to one of the graphviz shape
names. If None
is returned, no shape
attribute is specified. Read more
sourcefn 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
. Read more
sourcefn 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. Read more
sourcefn 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.
sourcefn node_color(&'a self, _node: &N) -> Option<LabelText<'a>>
fn node_color(&'a self, _node: &N) -> Option<LabelText<'a>>
Maps n
to one of the graphviz color
names. If None
is returned, no color
attribute is specified. Read more
sourcefn 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. Read more
sourcefn 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. Read more
sourcefn 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.
sourcefn edge_color(&'a self, _e: &E) -> Option<LabelText<'a>>
fn edge_color(&'a self, _e: &E) -> Option<LabelText<'a>>
Maps e
to one of the graphviz color
names. If None
is returned, no color
attribute is specified. Read more
sourceimpl<T: GraphDefinition> Ord for Edge<T>
impl<T: GraphDefinition> Ord for Edge<T>
sourceimpl<T: GraphDefinition> PartialEq<Edge<T>> for Edge<T>
impl<T: GraphDefinition> PartialEq<Edge<T>> for Edge<T>
sourceimpl<T: GraphDefinition> PartialOrd<Edge<T>> for Edge<T>
impl<T: GraphDefinition> PartialOrd<Edge<T>> for Edge<T>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: GraphDefinition> Eq for Edge<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for Edge<T>
impl<T> !Send for Edge<T>
impl<T> !Sync for Edge<T>
impl<T> Unpin for Edge<T> where
T: Unpin,
<T as GraphDefinition>::Id: Unpin,
impl<T> !UnwindSafe for Edge<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more