Rust Coding Example Python Class Method