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

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

Each member of block rule chain must implement this trait

Required Methods§

source

fn run(state: &mut BlockState<'_, '_>) -> Option<(Node, usize)>

Provided Methods§

source

fn check(state: &mut BlockState<'_, '_>) -> Option<()>

Implementors§