pub struct Graph { /* private fields */ }
Trait Implementations§
Source§impl<'a> GraphWalk<'a, (usize, &'a str), ((usize, &'a str), (usize, &'a str), &'a str)> for Graph
impl<'a> GraphWalk<'a, (usize, &'a str), ((usize, &'a str), (usize, &'a str), &'a str)> for Graph
Source§impl<'a> Labeller<'a, (usize, &'a str), ((usize, &'a str), (usize, &'a str), &'a str)> for Graph
impl<'a> Labeller<'a, (usize, &'a str), ((usize, &'a str), (usize, &'a str), &'a str)> for Graph
Source§fn node_id(&'a self, n: &(usize, &'_ str)) -> Id<'a>
fn node_id(&'a self, n: &(usize, &'_ str)) -> 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: &(usize, &'a str)) -> LabelText<'a>
fn node_label(&'a self, n: &(usize, &'a str)) -> 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: &((usize, &'a str), (usize, &'a str), &'a str),
) -> LabelText<'a>
fn edge_label( &'a self, e: &((usize, &'a str), (usize, &'a str), &'a str), ) -> 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.Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
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
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more