Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ get_key
Method
get_key
publication/code/chapter08/binary_tree.rs:139–141 ·
view source on GitHub ↗
获取及设置 key
(&self)
Source
from the content-addressed store, hash-verified
137
138
// 获取及设置 key
139
fn get_key(&self) -> T {
140
self.key.clone()
141
}
142
143
fn set_key(&mut self, key: T) {
144
self.key = key;
Callers
3
iexp
Method · 0.45
oexp
Function · 0.45
basic
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected