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

Method fmt

component-model/examples/tutorial/command/src/main.rs:16–20  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

14
15impl fmt::Display for Op {
16 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
17 match self {
18 Op::Add => write!(f, "+"),
19 }
20 }
21}
22
23/// A CLI for executing mathematical expressions

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected