An example Erlang NIF implemented in Rust