MCPcopy Create free account
hub / github.com/elastio/devx / as_mut

Method as_mut

devx-cmd/src/lib.rs:281–284  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

279 }
280
281 fn as_mut(&mut self) -> &mut CmdShared {
282 // Clone-on-write is so easy to do with `Arc` :D
283 Arc::make_mut(&mut self.0)
284 }
285
286 /// Set binary path, overwrites the path that was set before.
287 pub fn bin(&mut self, bin: impl Into<PathBuf>) -> &mut Self {

Callers 11

binMethod · 0.80
current_dirMethod · 0.80
log_cmdMethod · 0.80
log_errMethod · 0.80
stdinMethod · 0.80
stdin_bytesMethod · 0.80
argMethod · 0.80
replace_argMethod · 0.80
argsMethod · 0.80
envMethod · 0.80
stdout_linesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected