Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
37
impl 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
44
fn main() {
Callers
1
main
Function · 0.45
Calls
1
eval_expression
Function · 0.85
Tested by
no test coverage detected