MCPcopy Create free account
hub / github.com/bytecodealliance/component-docs / run

Method run

component-model/examples/tutorial/command/src/main.rs:38–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36
37impl Command {
38 fn run(self) {
39 let res = calculate::eval_expression(self.op, self.x, self.y);
40 println!("{} {} {} = {res}", self.x, self.op, self.y);
41 }
42}
43
44fn main() {

Callers 1

mainFunction · 0.45

Calls 1

eval_expressionFunction · 0.85

Tested by

no test coverage detected