pub trait InlineRule: 'static {
    const MARKER: char;

    // Required method
    fn run(state: &mut InlineState<'_, '_>) -> Option<(Node, usize)>;

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

Each member of inline rule chain must implement this trait

Required Associated Constants§

Required Methods§

source

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

Provided Methods§

source

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

Implementors§