Simulated dynamic binding in Rust