Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/douchuan/algorithm
/ i_am_right
Method
i_am_right
src/tree/binary/node.rs:235–237 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
233
}
234
235
pub fn i_am_right(&self) -> bool {
236
self.is_some() && self.parent().right().node == self.node
237
}
238
239
pub fn is_leaf(&self) -> bool {
240
self.node
Callers
1
insert_fix
Function · 0.80
Calls
3
is_some
Method · 0.80
parent
Method · 0.80
right
Method · 0.45
Tested by
no test coverage detected