pub struct Digraph<I> { /* private fields */ }
Expand description
A directed graph on top of Inspect.
Implementations§
Source§impl<I> Digraph<I>where
I: VertexId,
impl<I> Digraph<I>where
I: VertexId,
Sourcepub fn new(parent: &Node, options: DigraphOpts) -> Digraph<I>
pub fn new(parent: &Node, options: DigraphOpts) -> Digraph<I>
Create a new directed graph under the given parent
node.
Sourcepub fn add_vertex<'a, M>(&self, id: I, initial_metadata: M) -> Vertex<I>where
M: IntoIterator<Item = Metadata<'a>>,
pub fn add_vertex<'a, M>(&self, id: I, initial_metadata: M) -> Vertex<I>where
M: IntoIterator<Item = Metadata<'a>>,
Add a new vertex to the graph identified by the given ID and with the given initial metadata.
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for Digraph<I>
impl<I> !RefUnwindSafe for Digraph<I>
impl<I> Send for Digraph<I>where
I: Send,
impl<I> Sync for Digraph<I>where
I: Sync,
impl<I> Unpin for Digraph<I>where
I: Unpin,
impl<I> !UnwindSafe for Digraph<I>
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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