[][src]Trait binjs_io::FormatProvider

pub trait FormatProvider {
    fn subcommand<'a, 'b>(&self) -> App<'a, 'b>;
fn handle_subcommand(
        &self,
        spec: &Spec,
        matches: Option<&ArgMatches>
    ) -> Result<Format, Error>; }
[]

Command-line management for a format

Required methods

fn subcommand<'a, 'b>(&self) -> App<'a, 'b>[]

Specify command-line arguments for this format.

fn handle_subcommand(
    &self,
    spec: &Spec,
    matches: Option<&ArgMatches>
) -> Result<Format, Error>
[]

Produce a format given command-line argument matches.

Implementors

impl FormatProvider for binjs_io::binjs_json::FormatProvider[src][]

impl FormatProvider for binjs_io::entropy::FormatProvider[src][]

impl FormatProvider for binjs_io::multipart::FormatProvider[src][]

impl FormatProvider for binjs_io::simple::FormatProvider[src][]

impl FormatProvider for binjs_io::xml::FormatProvider[src][]