Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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 功能
20
impl 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_postfix
Function · 0.45
divided_by_two
Function · 0.45
enqueue
Method · 0.45
enqueue
Method · 0.45
add_rear
Method · 0.45
base_converter
Function · 0.45
add_front
Method · 0.45
add_rear
Method · 0.45
main
Function · 0.45
add
Method · 0.45
remove
Method · 0.45
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected