clementine_core::states::matcher

Trait BlockMatcher

Source
pub(crate) trait BlockMatcher {
    type StateEvent;

    // Required method
    fn match_block(&self, block: &BlockCache) -> Vec<Self::StateEvent>;
}
Expand description

A trait that will return a single event when a block matches any of the matchers.

Required Associated Types§

Required Methods§

Source

fn match_block(&self, block: &BlockCache) -> Vec<Self::StateEvent>

Implementors§