Add Rust static method support to the translator