We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Command::as_std/as_mut_std
1 parent 02c19c7 commit a1a4675Copy full SHA for a1a4675
src/lib.rs
@@ -1077,6 +1077,16 @@ impl Command {
1077
let child = Child::new(self);
1078
async { child?.output().await }
1079
}
1080
+
1081
+ /// Cheaply convert to a `&std::process::Command` for places where the type from the standard library is expected.
1082
+ pub fn as_std(&self) -> &std::process::Command {
1083
+ &self.inner
1084
+ }
1085
1086
+ /// Cheaply convert to a `&mut std::process::Command` for places where the type from the standard library is expected.
1087
+ pub fn as_mut_std(&mut self) -> &mut std::process::Command {
1088
+ &mut self.inner
1089
1090
1091
1092
impl From<std::process::Command> for Command {
0 commit comments