pub struct AdjacencyMap<T, E> { /* private fields */ }Expand description
A graph traversal that builds an adjacency map
Implementations§
Source§impl<T, E> AdjacencyMap<T, E>
impl<T, E> AdjacencyMap<T, E>
Source§impl<T, E> AdjacencyMap<T, E>
impl<T, E> AdjacencyMap<T, E>
Sourcepub fn into_postorder_topological(self) -> IntoPostorderTopologicalIter<T, E>
pub fn into_postorder_topological(self) -> IntoPostorderTopologicalIter<T, E>
Returns an owned iterator over the nodes in postorder topological order, starting from the roots.
Sourcepub fn into_breadth_first_edges(self) -> IntoBreadthFirstEdges<T, E>
pub fn into_breadth_first_edges(self) -> IntoBreadthFirstEdges<T, E>
Returns an owned iterator over all edges (node pairs) in reverse breadth first order, starting from the roots.
Sourcepub fn postorder_topological(&self) -> PostorderTopologicalIter<'_, T, E>
pub fn postorder_topological(&self) -> PostorderTopologicalIter<'_, T, E>
Returns an iterator over the nodes in postorder topological order, starting from the roots.
Sourcepub fn postorder_topological_from_node<'graph>(
&'graph self,
node: &'graph T,
) -> PostorderTopologicalIter<'graph, T, E>
pub fn postorder_topological_from_node<'graph>( &'graph self, node: &'graph T, ) -> PostorderTopologicalIter<'graph, T, E>
Returns an iterator over the nodes in postorder topological order, starting from the given node.
Trait Implementations§
Source§impl<T: Clone, E: Clone> Clone for AdjacencyMap<T, E>
impl<T: Clone, E: Clone> Clone for AdjacencyMap<T, E>
Source§fn clone(&self) -> AdjacencyMap<T, E>
fn clone(&self) -> AdjacencyMap<T, E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T, E> Default for AdjacencyMap<T, E>
impl<T, E> Default for AdjacencyMap<T, E>
Source§impl<T, E> GraphStore for AdjacencyMap<T, E>
impl<T, E> GraphStore for AdjacencyMap<T, E>
Source§impl<T, E> PartialEq for AdjacencyMap<T, E>
impl<T, E> PartialEq for AdjacencyMap<T, E>
Source§impl<T: TraceRawVcs, E: TraceRawVcs> TraceRawVcs for AdjacencyMap<T, E>
impl<T: TraceRawVcs, E: TraceRawVcs> TraceRawVcs for AdjacencyMap<T, E>
fn trace_raw_vcs(&self, __context__: &mut TraceRawVcsContext)
fn get_raw_vcs(&self) -> Vec<RawVc>
Source§impl<T: ValueDebugFormat + Debug + Send + Sync, E: ValueDebugFormat + Debug + Send + Sync> ValueDebugFormat for AdjacencyMap<T, E>
impl<T: ValueDebugFormat + Debug + Send + Sync, E: ValueDebugFormat + Debug + Send + Sync> ValueDebugFormat for AdjacencyMap<T, E>
fn value_debug_format<'a>(&'a self, depth: usize) -> ValueDebugFormatString<'a>
impl<T, E> Eq for AdjacencyMap<T, E>
impl<T, E> NonLocalValue for AdjacencyMap<T, E>where
T: NonLocalValue,
E: NonLocalValue,
Auto Trait Implementations§
impl<T, E> Freeze for AdjacencyMap<T, E>
impl<T, E> RefUnwindSafe for AdjacencyMap<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for AdjacencyMap<T, E>
impl<T, E> Sync for AdjacencyMap<T, E>
impl<T, E> Unpin for AdjacencyMap<T, E>
impl<T, E> UnwindSafe for AdjacencyMap<T, E>where
T: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> DynPartialEq for T
impl<T> DynPartialEq for T
fn dyn_partial_eq(&self, other: &(dyn Any + 'static)) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Store> GraphTraversal for Storewhere
Store: GraphStore,
impl<Store> GraphTraversal for Storewhere
Store: GraphStore,
Source§fn visit<VisitImpl, Impl>(
self,
root_nodes: impl IntoIterator<Item = <Store as GraphStore>::Node>,
visit: VisitImpl,
) -> impl Future<Output = GraphTraversalResult<Result<Store, Error>>> + Sendwhere
VisitImpl: Visit<<Store as GraphStore>::Node, <Store as GraphStore>::Edge, Impl> + Send,
Impl: Send,
fn visit<VisitImpl, Impl>(
self,
root_nodes: impl IntoIterator<Item = <Store as GraphStore>::Node>,
visit: VisitImpl,
) -> impl Future<Output = GraphTraversalResult<Result<Store, Error>>> + Sendwhere
VisitImpl: Visit<<Store as GraphStore>::Node, <Store as GraphStore>::Edge, Impl> + Send,
Impl: Send,
Visits the graph starting from the given roots, and returns a future
that will resolve to the traversal result.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.