pub struct Node(/* private fields */);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.Source§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.Source§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.Source§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 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.impl Copy for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more