Rust bindings for btree.c