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
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 Methods§
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.