Struct petgraph::visit::EdgeFiltered [−][src]
pub struct EdgeFiltered<G, F>(pub G, pub F);
Expand description
An edge-filtering graph adaptor.
The adaptor may filter out edges. The filter implements the trait
FilterEdge. Closures of type Fn(G::EdgeRef) -> bool already
implement this trait.
The filter may use edge source, target, id, and weight to select whether to include the edge or not.
Implementations
impl<F, G> EdgeFiltered<G, F> where
G: IntoEdgeReferences,
F: Fn(G::EdgeRef) -> bool, [src]
impl<F, G> EdgeFiltered<G, F> where
G: IntoEdgeReferences,
F: Fn(G::EdgeRef) -> bool, [src]Trait Implementations
impl<G: Clone, F: Clone> Clone for EdgeFiltered<G, F>[src]
impl<G: Clone, F: Clone> Clone for EdgeFiltered<G, F>[src]fn clone(&self) -> EdgeFiltered<G, F>[src]
fn clone(&self) -> EdgeFiltered<G, F>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<G, F> Data for EdgeFiltered<G, F> where
G: Data, [src]
impl<G, F> Data for EdgeFiltered<G, F> where
G: Data, [src]type NodeWeight = G::NodeWeight
type EdgeWeight = G::EdgeWeight
impl<G: Debug, F: Debug> Debug for EdgeFiltered<G, F>[src]
impl<G: Debug, F: Debug> Debug for EdgeFiltered<G, F>[src]impl<G, F> GraphBase for EdgeFiltered<G, F> where
G: GraphBase, [src]
impl<G, F> GraphBase for EdgeFiltered<G, F> where
G: GraphBase, [src]impl<G, F> GraphProp for EdgeFiltered<G, F> where
G: GraphProp, [src]
impl<G, F> GraphProp for EdgeFiltered<G, F> where
G: GraphProp, [src]fn is_directed(&self) -> bool[src]
impl<'a, G, F> IntoEdgeReferences for &'a EdgeFiltered<G, F> where
G: IntoEdgeReferences,
F: FilterEdge<G::EdgeRef>, [src]
impl<'a, G, F> IntoEdgeReferences for &'a EdgeFiltered<G, F> where
G: IntoEdgeReferences,
F: FilterEdge<G::EdgeRef>, [src]type EdgeRef = G::EdgeRef
type EdgeReferences = EdgeFilteredEdges<'a, G, G::EdgeReferences, F>
fn edge_references(self) -> Self::EdgeReferences[src]
impl<'a, G, F> IntoEdges for &'a EdgeFiltered<G, F> where
G: IntoEdges,
F: FilterEdge<G::EdgeRef>, [src]
impl<'a, G, F> IntoEdges for &'a EdgeFiltered<G, F> where
G: IntoEdges,
F: FilterEdge<G::EdgeRef>, [src]impl<'a, G, F> IntoNeighbors for &'a EdgeFiltered<G, F> where
G: IntoEdges,
F: FilterEdge<G::EdgeRef>, [src]
impl<'a, G, F> IntoNeighbors for &'a EdgeFiltered<G, F> where
G: IntoEdges,
F: FilterEdge<G::EdgeRef>, [src]impl<'a, G, F> IntoNeighborsDirected for &'a EdgeFiltered<G, F> where
G: IntoEdgesDirected,
F: FilterEdge<G::EdgeRef>, [src]
impl<'a, G, F> IntoNeighborsDirected for &'a EdgeFiltered<G, F> where
G: IntoEdgesDirected,
F: FilterEdge<G::EdgeRef>, [src]type NeighborsDirected = EdgeFilteredNeighborsDirected<'a, G, 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 EdgeFiltered<G, F> where
G: IntoNodeIdentifiers, [src]
impl<'a, G, F> IntoNodeIdentifiers for &'a EdgeFiltered<G, F> where
G: IntoNodeIdentifiers, [src]type NodeIdentifiers = G::NodeIdentifiers
fn node_identifiers(self) -> Self::NodeIdentifiers[src]
impl<'a, G, F> IntoNodeReferences for &'a EdgeFiltered<G, F> where
G: IntoNodeReferences, [src]
impl<'a, G, F> IntoNodeReferences for &'a EdgeFiltered<G, F> where
G: IntoNodeReferences, [src]type NodeRef = G::NodeRef
type NodeReferences = G::NodeReferences
fn node_references(self) -> Self::NodeReferences[src]
impl<G, F> NodeCount for EdgeFiltered<G, F> where
G: NodeCount, [src]
impl<G, F> NodeCount for EdgeFiltered<G, F> where
G: NodeCount, [src]fn node_count(&self) -> usize[src]
impl<G, F> NodeIndexable for EdgeFiltered<G, F> where
G: NodeIndexable, [src]
impl<G, F> NodeIndexable for EdgeFiltered<G, F> where
G: NodeIndexable, [src]impl<G, F> Visitable for EdgeFiltered<G, F> where
G: Visitable, [src]
impl<G, F> Visitable for EdgeFiltered<G, F> where
G: Visitable, [src]impl<G: Copy, F: Copy> Copy for EdgeFiltered<G, F>[src]
impl<G, F> NodeCompactIndexable for EdgeFiltered<G, F> where
G: NodeCompactIndexable, [src]
G: NodeCompactIndexable,
Auto Trait Implementations
impl<G, F> RefUnwindSafe for EdgeFiltered<G, F> where
F: RefUnwindSafe,
G: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, F> Send for EdgeFiltered<G, F> where
F: Send,
G: Send,
F: Send,
G: Send,
impl<G, F> Sync for EdgeFiltered<G, F> where
F: Sync,
G: Sync,
F: Sync,
G: Sync,
impl<G, F> Unpin for EdgeFiltered<G, F> where
F: Unpin,
G: Unpin,
F: Unpin,
G: Unpin,
impl<G, F> UnwindSafe for EdgeFiltered<G, F> where
F: UnwindSafe,
G: UnwindSafe,
F: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more