Skip to main content

FilterEdge

Trait FilterEdge 

Source
pub trait FilterEdge<Edge> {
    // Required method
    fn include_edge(&self, edge: Edge) -> bool;
}
Expand description

A graph filter for edges

Required Methods§

Source

fn include_edge(&self, edge: Edge) -> bool

Return true to have the edge be part of the graph

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F, N> FilterEdge<N> for F
where F: Fn(N) -> bool,