pub trait NamedEventParser: Named {
    type State;

    fn parse(
        &self,
        s: &str
    ) -> Result<Box<dyn Event<State = Self::State>>, ParseEventError>; }
Expand description

A parser for Event types.

Required Associated Types§

The state type.

Required Methods§

Constructs an Event object from its string representation.

Errors

ParseEventError if the given string slice could not be decoded.

Implementors§

Blanket NamedEventParser implementation for any compliant Parser.