Trait cucumber::Parser

source ·
pub trait Parser<I> {
    type Cli: Args;
    type Output: Stream<Item = Result<Feature>> + 'static;

    // Required method
    fn parse(self, input: I, cli: Self::Cli) -> Self::Output;
}
Expand description

Source of parsed Features.

Required Associated Types§

source

type Cli: Args

CLI options of this Parser. In case no options should be introduced, just use cli::Empty.

All CLI options from Parser, Runner and Writer will be merged together, so overlapping arguments will cause a runtime panic.

source

type Output: Stream<Item = Result<Feature>> + 'static

Output Stream of parsed Features.

Required Methods§

source

fn parse(self, input: I, cli: Self::Cli) -> Self::Output

Parses the given input into a Stream of Features.

Implementors§