pub trait FilterGenExt {
type Params: Default;
const KEY: &'static str;
const FMT: Option<&'static str>;
fn parse_args(parser: Option<Parser<'_>>) -> Option<FilterGen>;
fn add_help(s: &mut String);
fn work(data: &Data, params: Self::Params) -> Res<(Filters, Vec<Chart>)>;
}
Expand description
Trait implemented by filter generation techniques.
This trait represents the info needed by FilterGen
to
Required Associated Types
Required Associated Constants
Required Methods
Parses the (potentialy optional) parameters for the generator.
Simply returns None
if parameters are ill-formed. Caller’s responsible for error
reporting.
Adds help about itself to a String
.
See AllocSite
’s implementation of this function to get an idea of the format.