Trait CommandExt

Source
pub(crate) trait CommandExt {
    // Required methods
    fn map_opt<T>(
        &mut self,
        b: Option<&T>,
        f: impl FnOnce(&T, &mut Self),
    ) -> &mut Self;
    fn run(&mut self) -> Result<()>;
    fn run_with_cargo_metadata(&mut self) -> Result<Vec<Artifact>>;
}

Required Methods§

Source

fn map_opt<T>( &mut self, b: Option<&T>, f: impl FnOnce(&T, &mut Self), ) -> &mut Self

Source

fn run(&mut self) -> Result<()>

Source

fn run_with_cargo_metadata(&mut self) -> Result<Vec<Artifact>>

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.

Implementations on Foreign Types§

Source§

impl CommandExt for Command

Source§

fn map_opt<T>( &mut self, opt: Option<&T>, f: impl FnOnce(&T, &mut Self), ) -> &mut Self

Source§

fn run(&mut self) -> Result<()>

Source§

fn run_with_cargo_metadata(&mut self) -> Result<Vec<Artifact>>

Implementors§