CliFlags

Trait CliFlags 

Source
pub trait CliFlags {
    // Required methods
    fn base_flags() -> Vec<&'static str>;
    fn glob_flag(glob: &str) -> String;

    // Provided method
    fn get((): ()) -> Vec<String> { ... }
}
Expand description

Trait for generating CLI flags for search tools.

Required Methods§

Source

fn base_flags() -> Vec<&'static str>

Returns the base flags for the CLI tool.

Source

fn glob_flag(glob: &str) -> String

Converts a glob pattern to a CLI flag.

Provided Methods§

Source

fn get((): ()) -> Vec<String>

Generates the complete list of CLI flags.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§