Trait InlineRule

Source
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 an 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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§