Function heap::build
[−]
[src]
pub fn build<A, F: Fn(&A, &A) -> bool>(arity: usize, f: F, xs: &mut [A])
Make xs
a heap.
f(x,y)
is whether x
must be nearer to the root than y
.