Skip to main content

CallView

Trait CallView 

Source
pub trait CallView {
    // Required methods
    fn flag(&self, name: &str) -> Option<&str>;
    fn has(&self, name: &str) -> bool;
    fn has_run(&self, run: &[&str]) -> bool;
}
Available on crate feature fake only.
Expand description

A call read by meaning rather than as a quoted line: its options and their values.

Required Methods§

Source

fn flag(&self, name: &str) -> Option<&str>

The value of option name (--name value or --name=value), the last when given twice.

Source

fn has(&self, name: &str) -> bool

Whether option or argument name is given.

Source

fn has_run(&self, run: &[&str]) -> bool

Whether the arguments run appear together, in order.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl CallView for Call

Available on crate features fake only.