An implementation of range encoding for Rust. This implementation is extracted using c2rust from a private API of the Opus codec, so it should be fairly robust.