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
pub trait BlockRule: 'static {
fn run(state: &mut BlockState<'_, '_>) -> Option<(Node, usize)>;
fn check(state: &mut BlockState<'_, '_>) -> Option<()> { ... }
}Each member of block rule chain must implement this trait