MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / to_string

Method to_string

publication/code/chapter10/conshash.rs:21–23  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

19// 为 Node 添加 to_string 功能
20impl ToString for Node {
21 fn to_string(&self) -> String {
22 self.ip.to_string() + &self.port.to_string()
23 }
24}
25
26// 哈希计算函数

Callers 15

infix_to_postfixFunction · 0.45
divided_by_twoFunction · 0.45
enqueueMethod · 0.45
enqueueMethod · 0.45
add_rearMethod · 0.45
base_converterFunction · 0.45
add_frontMethod · 0.45
add_rearMethod · 0.45
mainFunction · 0.45
addMethod · 0.45
removeMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected