Trait ParserBuilder

Source
pub trait ParserBuilder<P: Pipe> {
    type Parser: Parser<P>;

    // Required methods
    fn new() -> Self;
    fn build(self) -> Result<Self::Parser, OptionError>;

    // Provided method
    fn option(&mut self, _name: String, _value: String) { ... }
}

Required Associated Types§

Required Methods§

Source

fn new() -> Self

Source

fn build(self) -> Result<Self::Parser, OptionError>

Provided Methods§

Source

fn option(&mut self, _name: String, _value: String)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§