Skip to main content

Cargo

Trait Cargo 

Source
pub trait Cargo {
    // Required method
    fn run(&self, root: &Path, args: &[&str]) -> Result<Ran, String>;
}
Expand description

How lint runs cargo.

Required Methods§

Source

fn run(&self, root: &Path, args: &[&str]) -> Result<Ran, String>

Cargo with args, run in root; an error if it doesn’t start.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§