pub struct FilterNodes<G, F> { /* private fields */ }Expand description
A graph whose nodes are being filtered by the predicate F.
Created by the Graph::filter_nodes trait method.
Trait Implementations§
Source§impl<G, F> Debug for FilterNodes<G, F>where
G: Debug,
impl<G, F> Debug for FilterNodes<G, F>where
G: Debug,
Source§impl<G, F, Node> Graph<Node> for FilterNodes<G, F>
impl<G, F, Node> Graph<Node> for FilterNodes<G, F>
Source§type NodesIter<'a> = Filter<<G as Graph<Node>>::NodesIter<'a>, &'a F>
where
Self: 'a
type NodesIter<'a> = Filter<<G as Graph<Node>>::NodesIter<'a>, &'a F> where Self: 'a
The iterator type returned by
Nodes::nodes.Source§type SuccessorsIter<'a> = Filter<<G as Graph<Node>>::SuccessorsIter<'a>, &'a F>
where
Self: 'a
type SuccessorsIter<'a> = Filter<<G as Graph<Node>>::SuccessorsIter<'a>, &'a F> where Self: 'a
The iterator type returned by
Successors::successors.Source§fn successors(&self, node: Node) -> Self::SuccessorsIter<'_>
fn successors(&self, node: Node) -> Self::SuccessorsIter<'_>
Iterate over the successors of the given
node.Source§fn filter_nodes<F>(self, predicate: F) -> FilterNodes<Self, F>
fn filter_nodes<F>(self, predicate: F) -> FilterNodes<Self, F>
Use the given predicate to filter out certain nodes from the graph.
Auto Trait Implementations§
impl<G, F> Freeze for FilterNodes<G, F>
impl<G, F> RefUnwindSafe for FilterNodes<G, F>where
G: RefUnwindSafe,
F: RefUnwindSafe,
impl<G, F> Send for FilterNodes<G, F>
impl<G, F> Sync for FilterNodes<G, F>
impl<G, F> Unpin for FilterNodes<G, F>
impl<G, F> UnwindSafe for FilterNodes<G, F>where
G: UnwindSafe,
F: UnwindSafe,
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