Struct petgraph::visit::NodeFiltered  
source · [−]pub struct NodeFiltered<G, F>(pub G, pub F);Expand description
A node-filtering graph adaptor.
Tuple Fields
0: G1: FImplementations
Trait Implementations
sourceimpl<G: Clone, F: Clone> Clone for NodeFiltered<G, F>
 
impl<G: Clone, F: Clone> Clone for NodeFiltered<G, F>
sourcefn clone(&self) -> NodeFiltered<G, F>
 
fn clone(&self) -> NodeFiltered<G, F>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<G, F> Data for NodeFiltered<G, F> where
    G: Data, 
 
impl<G, F> Data for NodeFiltered<G, F> where
    G: Data, 
type NodeWeight = G::NodeWeight
type EdgeWeight = G::EdgeWeight
sourceimpl<G, F> DataMap for NodeFiltered<G, F> where
    G: DataMap,
    F: FilterNode<G::NodeId>, 
 
impl<G, F> DataMap for NodeFiltered<G, F> where
    G: DataMap,
    F: FilterNode<G::NodeId>, 
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
sourceimpl<G: Debug, F: Debug> Debug for NodeFiltered<G, F>
 
impl<G: Debug, F: Debug> Debug for NodeFiltered<G, F>
sourceimpl<G, F> EdgeIndexable for NodeFiltered<G, F> where
    G: EdgeIndexable, 
 
impl<G, F> EdgeIndexable for NodeFiltered<G, F> where
    G: EdgeIndexable, 
sourcefn edge_bound(&self) -> usize
 
fn edge_bound(&self) -> usize
Return an upper bound of the edge indices in the graph (suitable for the size of a bitmap). Read more
sourcefn from_index(&self, i: usize) -> Self::EdgeId
 
fn from_index(&self, i: usize) -> Self::EdgeId
Convert i to an edge index. i must be a valid value in the graph.
sourceimpl<G, F> GraphBase for NodeFiltered<G, F> where
    G: GraphBase, 
 
impl<G, F> GraphBase for NodeFiltered<G, F> where
    G: GraphBase, 
sourceimpl<G, F> GraphProp for NodeFiltered<G, F> where
    G: GraphProp, 
 
impl<G, F> GraphProp for NodeFiltered<G, F> where
    G: GraphProp, 
fn is_directed(&self) -> bool
sourceimpl<'a, G, F> IntoEdgeReferences for &'a NodeFiltered<G, F> where
    G: IntoEdgeReferences,
    F: FilterNode<G::NodeId>, 
 
impl<'a, G, F> IntoEdgeReferences for &'a NodeFiltered<G, F> where
    G: IntoEdgeReferences,
    F: FilterNode<G::NodeId>, 
type EdgeRef = G::EdgeRef
type EdgeReferences = NodeFilteredEdgeReferences<'a, G, G::EdgeReferences, F>
fn edge_references(self) -> Self::EdgeReferences
sourceimpl<'a, G, F> IntoEdges for &'a NodeFiltered<G, F> where
    G: IntoEdges,
    F: FilterNode<G::NodeId>, 
 
impl<'a, G, F> IntoEdges for &'a NodeFiltered<G, F> where
    G: IntoEdges,
    F: FilterNode<G::NodeId>, 
sourceimpl<'a, G, F> IntoEdgesDirected for &'a NodeFiltered<G, F> where
    G: IntoEdgesDirected,
    F: FilterNode<G::NodeId>, 
 
impl<'a, G, F> IntoEdgesDirected for &'a NodeFiltered<G, F> where
    G: IntoEdgesDirected,
    F: FilterNode<G::NodeId>, 
type EdgesDirected = NodeFilteredEdges<'a, G, G::EdgesDirected, F>
fn edges_directed(self, a: G::NodeId, dir: Direction) -> Self::EdgesDirected
sourceimpl<'a, G, F> IntoNeighbors for &'a NodeFiltered<G, F> where
    G: IntoNeighbors,
    F: FilterNode<G::NodeId>, 
 
impl<'a, G, F> IntoNeighbors for &'a NodeFiltered<G, F> where
    G: IntoNeighbors,
    F: FilterNode<G::NodeId>, 
sourceimpl<'a, G, F> IntoNeighborsDirected for &'a NodeFiltered<G, F> where
    G: IntoNeighborsDirected,
    F: FilterNode<G::NodeId>, 
 
impl<'a, G, F> IntoNeighborsDirected for &'a NodeFiltered<G, F> where
    G: IntoNeighborsDirected,
    F: FilterNode<G::NodeId>, 
type NeighborsDirected = NodeFilteredNeighbors<'a, G::NeighborsDirected, F>
fn neighbors_directed(
    self, 
    n: G::NodeId, 
    dir: Direction
) -> Self::NeighborsDirected
sourceimpl<'a, G, F> IntoNodeIdentifiers for &'a NodeFiltered<G, F> where
    G: IntoNodeIdentifiers,
    F: FilterNode<G::NodeId>, 
 
impl<'a, G, F> IntoNodeIdentifiers for &'a NodeFiltered<G, F> where
    G: IntoNodeIdentifiers,
    F: FilterNode<G::NodeId>, 
type NodeIdentifiers = NodeFilteredNeighbors<'a, G::NodeIdentifiers, F>
fn node_identifiers(self) -> Self::NodeIdentifiers
sourceimpl<'a, G, F> IntoNodeReferences for &'a NodeFiltered<G, F> where
    G: IntoNodeReferences,
    F: FilterNode<G::NodeId>, 
 
impl<'a, G, F> IntoNodeReferences for &'a NodeFiltered<G, F> where
    G: IntoNodeReferences,
    F: FilterNode<G::NodeId>, 
type NodeRef = G::NodeRef
type NodeReferences = NodeFilteredNodes<'a, G::NodeReferences, F>
fn node_references(self) -> Self::NodeReferences
sourceimpl<G, F> NodeIndexable for NodeFiltered<G, F> where
    G: NodeIndexable, 
 
impl<G, F> NodeIndexable for NodeFiltered<G, F> where
    G: NodeIndexable, 
sourcefn node_bound(&self) -> usize
 
fn node_bound(&self) -> usize
Return an upper bound of the node indices in the graph (suitable for the size of a bitmap). Read more
sourcefn from_index(&self, i: usize) -> Self::NodeId
 
fn from_index(&self, i: usize) -> Self::NodeId
Convert i to a node index. i must be a valid value in the graph.
sourceimpl<G, F> Visitable for NodeFiltered<G, F> where
    G: Visitable, 
 
impl<G, F> Visitable for NodeFiltered<G, F> where
    G: Visitable, 
impl<G: Copy, F: Copy> Copy for NodeFiltered<G, F>
Auto Trait Implementations
impl<G, F> RefUnwindSafe for NodeFiltered<G, F> where
    F: RefUnwindSafe,
    G: RefUnwindSafe, 
impl<G, F> Send for NodeFiltered<G, F> where
    F: Send,
    G: Send, 
impl<G, F> Sync for NodeFiltered<G, F> where
    F: Sync,
    G: Sync, 
impl<G, F> Unpin for NodeFiltered<G, F> where
    F: Unpin,
    G: Unpin, 
impl<G, F> UnwindSafe for NodeFiltered<G, F> where
    F: UnwindSafe,
    G: UnwindSafe, 
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
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more