pub trait Named {
    fn name() -> &'static str;
    fn description() -> &'static str;

    fn opts() -> Vec<PassOpt> { ... }
}
Expand description

Trait that describes named things. Calling do_pass and do_pass_default. require this to be implemented.

This has to be a separate trait from Visitor because these methods don’t recieve self which means that it is impossible to create dynamic trait objects.

Required Methods

The name of a pass. Is used for identifying passes.

A short description of the pass.

Provided Methods

Set of options that can be passed to the pass. The options contains a tuple of the option name and a description.

Implementors