Trait Arg

Source
pub trait Arg {
    // Required method
    fn append_arg(&self, command: &mut Command);

    // Provided method
    fn append_option(&self, name: &str, command: &mut Command) { ... }
}
Expand description

A trait representing an argument to a command

Required Methods§

Source

fn append_arg(&self, command: &mut Command)

Append as positional argument

Provided Methods§

Source

fn append_option(&self, name: &str, command: &mut Command)

Append as an option

Implementations on Foreign Types§

Source§

impl Arg for char

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for f32

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for f64

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for i8

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for i16

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for i32

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for i64

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for isize

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for u8

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for u16

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for u32

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for u64

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for usize

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl Arg for String

Source§

fn append_arg(&self, command: &mut Command)

Source§

impl<T> Arg for Option<T>
where T: Arg,

Source§

fn append_arg(&self, command: &mut Command)

Source§

fn append_option(&self, name: &str, command: &mut Command)

Source§

impl<T> Arg for Vec<T>
where T: Arg,

Source§

fn append_arg(&self, command: &mut Command)

Source§

fn append_option(&self, name: &str, command: &mut Command)

Implementors§