MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / naming

Method naming

Source Code/18-08.rs:9–13  ·  view source on GitHub ↗
(self: Person)

Source from the content-addressed store, hash-verified

7 }
8 impl Person {
9 fn naming(self: Person) -> String {
10 format!("{} {}",
11 self.personal_names,
12 self.family_names)
13 }
14 }
15 let person = Person {
16 personal_names: "John".to_string(),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected