MCPcopy 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)]
13pub fn right(i: usize) -> usize {
14 (i + 1) << 1
15}
16
17/// parent of i
18#[inline(always)]

Callers 2

heapifyFunction · 0.85
rightMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected