Struct meshed::graph::ConcreteGraph
source · [−]pub struct ConcreteGraph<T> where
T: GraphDefinition, { /* private fields */ }
Implementations
sourceimpl<T> ConcreteGraph<T> where
T: GraphDefinition,
impl<T> ConcreteGraph<T> where
T: GraphDefinition,
sourceimpl<T> ConcreteGraph<T> where
T: GraphDefinition,
impl<T> ConcreteGraph<T> where
T: GraphDefinition,
sourceimpl ConcreteGraph<T>
impl ConcreteGraph<T>
pub fn insert_node(
&mut self,
node_id: <SimpleGraphDefinition as GraphDefinition>::Id
)
pub fn insert_edge(
&mut self,
from: <SimpleGraphDefinition as GraphDefinition>::Id,
to: <SimpleGraphDefinition as GraphDefinition>::Id
)
Trait Implementations
sourceimpl<T: GraphDefinition> Default for ConcreteGraph<T>
impl<T: GraphDefinition> Default for ConcreteGraph<T>
sourceimpl<T> FromIterator<Node<T>> for ConcreteGraph<T> where
T: GraphDefinition,
impl<T> FromIterator<Node<T>> for ConcreteGraph<T> where
T: GraphDefinition,
sourcefn from_iter<I: IntoIterator<Item = Node<T>>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = Node<T>>>(iter: I) -> Self
Creates a value from an iterator. Read more
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<'a, T: GraphDefinition> IntoIterator for &'a ConcreteGraph<T>
impl<'a, T: GraphDefinition> IntoIterator for &'a ConcreteGraph<T>
type IntoIter = <Vec<<&'a ConcreteGraph<T> as IntoIterator>::Item, Global> as IntoIterator>::IntoIter
type IntoIter = <Vec<<&'a ConcreteGraph<T> as IntoIterator>::Item, Global> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
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> Query<<T as GraphDefinition>::Id, Node<T>> for ConcreteGraph<T> where
T: GraphDefinition,
impl<T> Query<<T as GraphDefinition>::Id, Node<T>> for ConcreteGraph<T> where
T: GraphDefinition,
Auto Trait Implementations
impl<T> !RefUnwindSafe for ConcreteGraph<T>
impl<T> !Send for ConcreteGraph<T>
impl<T> !Sync for ConcreteGraph<T>
impl<T> Unpin for ConcreteGraph<T> where
T: Unpin,
<T as GraphDefinition>::Id: Unpin,
impl<T> !UnwindSafe for ConcreteGraph<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