Skip to main content

NodeMatcher

Trait NodeMatcher 

Source
pub trait NodeMatcher<G0: GraphBase, G1: GraphBase> {
    // Required methods
    fn enabled() -> bool;
    fn eq(
        &mut self,
        _g0: &G0,
        _g1: &G1,
        _n0: G0::NodeId,
        _n1: G1::NodeId,
    ) -> bool;
}

Required Methods§

Source

fn enabled() -> bool

Source

fn eq(&mut self, _g0: &G0, _g1: &G1, _n0: G0::NodeId, _n1: G1::NodeId) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<G0, G1, F> NodeMatcher<G0, G1> for F
where G0: GraphBase + DataMap, G1: GraphBase + DataMap, F: FnMut(&G0::NodeWeight, &G1::NodeWeight) -> bool,

Source§

impl<G0: GraphBase, G1: GraphBase> NodeMatcher<G0, G1> for NoSemanticMatch