pub trait BuildPropagate<C, T, O> {
    fn build_propagate(self, task: C) -> O;
}
Expand description

Command logic builder type (with propagation).

This trait should be implemented by argument type parsers and branching parsers.

Appends the logic that should be executed when the command parser reaches the current parser, taking into account arguments that have been parsed before. This allows the final closure to take all the arguments defined up to this point and let the compiler infer their type. It also allows end arguments to be optional.

Note

The propagated type T is usually required to be Copy, note that any reference is Copy.

Required Methods

Implementors