pub struct Node(_);
Expand description
A node in the IR graph.
Trait Implementations§
source§impl<'a> Labeller<'a, Node, Edge<'a>> for Graph<'a>
impl<'a> Labeller<'a, Node, Edge<'a>> for Graph<'a>
source§fn node_id(&'a self, n: &Node) -> Id<'a>
fn node_id(&'a self, n: &Node) -> 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 moresource§fn node_shape(&'a self, _n: &Node) -> Option<LabelText<'a>>
fn node_shape(&'a self, _n: &Node) -> Option<LabelText<'a>>
Maps
n
to one of the graphviz shape
names. If None
is returned, no shape
attribute is specified. Read moresource§fn node_label(&'a self, n: &Node) -> LabelText<'a>
fn node_label(&'a self, n: &Node) -> 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 moresource§fn edge_label(&'a self, e: &Edge<'a>) -> LabelText<'a>
fn edge_label(&'a self, e: &Edge<'a>) -> 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 moresource§fn edge_style(&'a self, e: &Edge<'a>) -> Style
fn edge_style(&'a self, e: &Edge<'a>) -> Style
Maps
e
to a style that will be used in the rendered output.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 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 moresource§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. Read moresource§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. Read moresource§fn 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