Trait kalosm_sample::HasParser
source · pub trait HasParser {
type Parser: Parser<Output = Self>;
// Required methods
fn new_parser() -> Self::Parser;
fn create_parser_state() -> <Self::Parser as Parser>::PartialState;
}
Expand description
Data that can be parsed incrementally.
Required Associated Types§
Required Methods§
sourcefn new_parser() -> Self::Parser
fn new_parser() -> Self::Parser
Create a new parser.
sourcefn create_parser_state() -> <Self::Parser as Parser>::PartialState
fn create_parser_state() -> <Self::Parser as Parser>::PartialState
Create a new parser state.
Object Safety§
This trait is not object safe.