pub trait BlockRule: 'static {
    fn run(state: &mut BlockState<'_, '_>) -> Option<(Node, usize)>;

    fn check(state: &mut BlockState<'_, '_>) -> Option<()> { ... }
}
Expand description

Each member of block rule chain must implement this trait

Required Methods

Provided Methods

Implementors