MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / args_if

Method args_if

tools/cargo-run/src/cmd.rs:55–61  ·  view source on GitHub ↗
(self, cond: bool, args: I)

Source from the content-addressed store, hash-verified

53 }
54
55 fn args_if<I, S>(self, cond: bool, args: I) -> Self
56 where
57 I: IntoIterator<Item = S>,
58 S: Into<OsString>,
59 {
60 if cond { self.args(args) } else { self }
61 }
62
63 fn run(self) -> Result<(), Error> {
64 Expression::run(&self).map_err(Error::Command)?;

Callers 1

run_taskFunction · 0.80

Calls 1

argsMethod · 0.80

Tested by

no test coverage detected