Skip to main content

InputParser

Trait InputParser 

Source
pub trait InputParser {
    type Error;

    // Required method
    fn parse(input: &str) -> Result<IntermediateRepresentation, Self::Error>;
}
Expand description

Trait for parsing input formats into intermediate representation

Required Associated Types§

Required Methods§

Source

fn parse(input: &str) -> Result<IntermediateRepresentation, Self::Error>

Parse input string into intermediate representation

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§