TestEnvCommandExt in cargo_test_support - Rust (original) (raw)

Trait TestEnvCommandExt

Source

pub trait TestEnvCommandExt: Sized {
    // Required methods
    fn current_dir<S: AsRef<Path>>(self, path: S) -> Self;
    fn env<S: AsRef<OsStr>>(self, key: &str, value: S) -> Self;
    fn env_remove(self, key: &str) -> Self;

    // Provided method
    fn test_env(self) -> Self { ... }
}

Expand description

Establish a process’s test environment

Source

Source

Source

Source

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Source§

Source§

Source§

Source§

Source§