pub trait Parse<'src>: Sized {
// Required method
fn parser( ) -> impl Parser<'src, &'src str, Self, Full<Simple<'src, char>, (), ()>>;
}Expand description
A parser whose input is &'src str (char stream) and whose error type is Simple<char>.
The lifetime 'src is the input lifetime. Output type Self is owned and does not borrow
from the input. Print is the inverse: it writes a value in the spelling this parser
accepts, and #[derive(Parse)] generates both from the same pattern.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".