pub struct Graph<'a> { /* private fields */ }
Expand description
A graph representation of IR.
Trait Implementations
sourceimpl<'a> Labeller<'a, Node, Edge<'a>> for Graph<'a>
impl<'a> Labeller<'a, Node, Edge<'a>> for Graph<'a>
sourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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.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 moresourcefn 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 moresourcefn 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 moresourcefn 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 moreAuto Trait Implementations
impl<'a> !RefUnwindSafe for Graph<'a>
impl<'a> Send for Graph<'a>
impl<'a> Sync for Graph<'a>
impl<'a> Unpin for Graph<'a>
impl<'a> !UnwindSafe for Graph<'a>
Blanket Implementations
impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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