Trait ParseOptionsAdapter

Source
pub trait ParseOptionsAdapter<'a> {
    // Required methods
    fn src(&self) -> &'a str;
    fn key_val_delimeter(&self) -> &'a str;
    fn commands_delimeter(&self) -> &'a str;
    fn quoting(&self) -> bool;
    fn unquoting(&self) -> bool;
    fn parsing_arrays(&self) -> bool;
    fn several_values(&self) -> bool;
    fn subject_win_paths_maybe(&self) -> bool;

    // Provided method
    fn parse(self) -> Request<'a>
       where Self: Sized { ... }
}
Expand description

Adapter for ParseOptions.

Required Methods§

Source

fn src(&self) -> &'a str

A string to parse.

Source

fn key_val_delimeter(&self) -> &'a str

A delimeter for pairs key:value.

Source

fn commands_delimeter(&self) -> &'a str

Delimeter for commands.

Source

fn quoting(&self) -> bool

Quoting of strings.

Source

fn unquoting(&self) -> bool

Unquoting of string.

Source

fn parsing_arrays(&self) -> bool

Parse arrays of values.

Source

fn several_values(&self) -> bool

Append to a vector a values.

Source

fn subject_win_paths_maybe(&self) -> bool

Parse subject on Windows taking into account colon in path.

Provided Methods§

Source

fn parse(self) -> Request<'a>
where Self: Sized,

Do parsing.

Implementors§