MCPcopy Index your code
hub / github.com/douchuan/algorithm / left

Function left

src/common/binary_tree.rs:7–9  ·  view source on GitHub ↗
(i: usize)

Source from the content-addressed store, hash-verified

5/// left child of i
6#[inline(always)]
7pub fn left(i: usize) -> usize {
8 (i << 1) + 1
9}
10
11/// right child of i
12#[inline(always)]

Callers 3

heapifyFunction · 0.85
leftMethod · 0.85
buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected