Skip to main content

Frontend

Trait Frontend 

Source
pub trait Frontend {
    // Required method
    fn parse<'src>(&mut self, source: &'src str) -> Parsed<'src>;
}
Expand description

A parser from MF2 source to the data model.

Required Methods§

Source

fn parse<'src>(&mut self, source: &'src str) -> Parsed<'src>

&mut self lets an implementation keep scratch state across calls (the gate’s “reused” rows); the returned model borrows only the source.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§