Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/douchuan/algorithm
/ right
Function
right
src/common/binary_tree.rs:13–15 ·
view source on GitHub ↗
(i: usize)
Source
from the content-addressed store, hash-verified
11
/// right child of i
12
#[inline(always)]
13
pub fn right(i: usize) -> usize {
14
(i + 1) << 1
15
}
16
17
/// parent of i
18
#[inline(always)]
Callers
2
heapify
Function · 0.85
right
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected