MCPcopy Create free account
hub / github.com/dexwritescode/rust-mcp / new

Method new

test_code.rs:12–14  ·  view source on GitHub ↗
(name: String, age: u32)

Source from the content-addressed store, hash-verified

10
11impl Person {
12 fn new(name: String, age: u32) -> Self {
13 Person { name, age }
14 }
15
16 fn greet(&self) {
17 println!("Hello, my name is {}", self.name);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected