[−][src]Struct petgraph::visit::NodeFiltered
A node-filtering graph adaptor.
Implementations
impl<F, G> NodeFiltered<G, F> where
G: GraphBase,
F: Fn(G::NodeId) -> bool,
[src]
G: GraphBase,
F: Fn(G::NodeId) -> bool,
pub fn from_fn(graph: G, filter: F) -> Self
[src]
Create an NodeFiltered
adaptor from the closure filter
.
Trait Implementations
impl<G: Clone, F: Clone> Clone for NodeFiltered<G, F>
[src]
fn clone(&self) -> NodeFiltered<G, F>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<G: Copy, F: Copy> Copy for NodeFiltered<G, F>
[src]
impl<G, F> Data for NodeFiltered<G, F> where
G: Data,
[src]
G: Data,
type NodeWeight = G::NodeWeight
type EdgeWeight = G::EdgeWeight
impl<G, F> DataMap for NodeFiltered<G, F> where
G: DataMap,
F: FilterNode<G::NodeId>,
[src]
G: DataMap,
F: FilterNode<G::NodeId>,
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
[src]
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
[src]
impl<G: Debug, F: Debug> Debug for NodeFiltered<G, F>
[src]
impl<G, F> GraphBase for NodeFiltered<G, F> where
G: GraphBase,
[src]
G: GraphBase,
impl<G, F> GraphProp for NodeFiltered<G, F> where
G: GraphProp,
[src]
G: GraphProp,
impl<'a, G, F> IntoEdgeReferences for &'a NodeFiltered<G, F> where
G: IntoEdgeReferences,
F: FilterNode<G::NodeId>,
[src]
G: IntoEdgeReferences,
F: FilterNode<G::NodeId>,
type EdgeRef = G::EdgeRef
type EdgeReferences = NodeFilteredEdgeReferences<'a, G, G::EdgeReferences, F>
fn edge_references(self) -> Self::EdgeReferences
[src]
impl<'a, G, F> IntoEdges for &'a NodeFiltered<G, F> where
G: IntoEdges,
F: FilterNode<G::NodeId>,
[src]
G: IntoEdges,
F: FilterNode<G::NodeId>,
impl<'a, G, F> IntoNeighbors for &'a NodeFiltered<G, F> where
G: IntoNeighbors,
F: FilterNode<G::NodeId>,
[src]
G: IntoNeighbors,
F: FilterNode<G::NodeId>,
type Neighbors = NodeFilteredNeighbors<'a, G::Neighbors, F>
fn neighbors(self, n: G::NodeId) -> Self::Neighbors
[src]
impl<'a, G, F> IntoNeighborsDirected for &'a NodeFiltered<G, F> where
G: IntoNeighborsDirected,
F: FilterNode<G::NodeId>,
[src]
G: IntoNeighborsDirected,
F: FilterNode<G::NodeId>,
type NeighborsDirected = NodeFilteredNeighbors<'a, G::NeighborsDirected, F>
fn neighbors_directed(
self,
n: G::NodeId,
dir: Direction
) -> Self::NeighborsDirected
[src]
self,
n: G::NodeId,
dir: Direction
) -> Self::NeighborsDirected
impl<'a, G, F> IntoNodeIdentifiers for &'a NodeFiltered<G, F> where
G: IntoNodeIdentifiers,
F: FilterNode<G::NodeId>,
[src]
G: IntoNodeIdentifiers,
F: FilterNode<G::NodeId>,
type NodeIdentifiers = NodeFilteredNeighbors<'a, G::NodeIdentifiers, F>
fn node_identifiers(self) -> Self::NodeIdentifiers
[src]
impl<'a, G, F> IntoNodeReferences for &'a NodeFiltered<G, F> where
G: IntoNodeReferences,
F: FilterNode<G::NodeId>,
[src]
G: IntoNodeReferences,
F: FilterNode<G::NodeId>,
type NodeRef = G::NodeRef
type NodeReferences = NodeFilteredNodes<'a, G::NodeReferences, F>
fn node_references(self) -> Self::NodeReferences
[src]
impl<G, F> NodeIndexable for NodeFiltered<G, F> where
G: NodeIndexable,
[src]
G: NodeIndexable,
fn node_bound(&self) -> usize
[src]
fn to_index(&self, a: Self::NodeId) -> usize
[src]
fn from_index(&self, i: usize) -> Self::NodeId
[src]
impl<G, F> Visitable for NodeFiltered<G, F> where
G: Visitable,
[src]
G: Visitable,
Auto Trait Implementations
impl<G, F> RefUnwindSafe for NodeFiltered<G, F> where
F: RefUnwindSafe,
G: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, F> Send for NodeFiltered<G, F> where
F: Send,
G: Send,
F: Send,
G: Send,
impl<G, F> Sync for NodeFiltered<G, F> where
F: Sync,
G: Sync,
F: Sync,
G: Sync,
impl<G, F> Unpin for NodeFiltered<G, F> where
F: Unpin,
G: Unpin,
F: Unpin,
G: Unpin,
impl<G, F> UnwindSafe for NodeFiltered<G, F> where
F: UnwindSafe,
G: UnwindSafe,
F: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,