queue

Queue, Stack, and Priority Queue

Functions

FunctionDescription
queue_pages_for
queue_new
queue_grow
queue_push
queue_pop
queue_peek
queue_len
queue_empty
stack_new
stack_push
stack_pop
stack_peek
stack_len
stack_empty
pq_new
pq_parent
pq_left
pq_right
pq_sift_up
pq_sift_down
pq_push
pq_pop
pq_peek
pq_len
pq_empty

Details

queue_pages_for

fn queue_pages_for(n: i64) -> i64

queue_new

fn queue_new() -> &i64

queue_grow

fn queue_grow(q: &i64)

queue_push

fn queue_push(q: &i64, val: i64)

queue_pop

fn queue_pop(q: &i64) -> i64

queue_peek

fn queue_peek(q: &i64) -> i64

queue_len

fn queue_len(q: &i64) -> i64

queue_empty

fn queue_empty(q: &i64) -> i64

stack_new

fn stack_new() -> &i64

stack_push

fn stack_push(s: &i64, val: i64)

stack_pop

fn stack_pop(s: &i64) -> i64

stack_peek

fn stack_peek(s: &i64) -> i64

stack_len

fn stack_len(s: &i64) -> i64

stack_empty

fn stack_empty(s: &i64) -> i64

pq_new

fn pq_new() -> &i64

pq_parent

fn pq_parent(i: i64) -> i64

pq_left

fn pq_left(i: i64) -> i64

pq_right

fn pq_right(i: i64) -> i64

pq_sift_up

fn pq_sift_up(pq: &i64, idx: i64)

pq_sift_down

fn pq_sift_down(pq: &i64, idx: i64)

pq_push

fn pq_push(pq: &i64, val: i64)

pq_pop

fn pq_pop(pq: &i64) -> i64

pq_peek

fn pq_peek(pq: &i64) -> i64

pq_len

fn pq_len(pq: &i64) -> i64

pq_empty

fn pq_empty(pq: &i64) -> i64