rust-index: add append method
This is the first time the Rust index has any notion of mutability.
This will be used in a future patch from Python, to start synchronizing the
Rust index and the C index.
# So GitLab doesn't think we're using tons of Perl*.t -linguist-detectable