pub struct Digraph { /* private fields */ }
Expand description
A directed graph on top of Inspect.
Implementations§
Source§impl Digraph
impl Digraph
Sourcepub fn new(parent: &Node, _options: DigraphOpts) -> Digraph
pub fn new(parent: &Node, _options: DigraphOpts) -> Digraph
Create a new directed graph under the given parent
node.
Sourcepub fn add_vertex<VM: VertexMetadata>(
&self,
id: VM::Id,
init_metadata: impl FnOnce(Node) -> VM,
) -> Vertex<VM>
pub fn add_vertex<VM: VertexMetadata>( &self, id: VM::Id, init_metadata: impl FnOnce(Node) -> VM, ) -> Vertex<VM>
Add a new vertex to the graph identified by the given ID and with the given initial metadata.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Digraph
impl !RefUnwindSafe for Digraph
impl Send for Digraph
impl Sync for Digraph
impl Unpin for Digraph
impl !UnwindSafe for Digraph
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