Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ set_key
Method
set_key
publication/code/chapter08/binary_tree.rs:143–145 ·
view source on GitHub ↗
(&mut self, key: T)
Source
from the content-addressed store, hash-verified
141
}
142
143
fn set_key(&mut self, key: T) {
144
self.key = key;
145
}
146
147
// 求最大最小 key
148
fn min(&self) -> Option<&T> {
Callers
1
basic
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected