A Rust file is imported like a header. A pub fn is a function, and a pub struct with its impl is a class.
units.rs is plain Rust, with no attributes and no binding code. Celsius::new is the constructor, and names in snake_case arrive in camelCase: word_count is wordCount and to_fahrenheit is toFahrenheit.
C++ and Rust files sit side by side in one project, and one initNative() starts both. The Rust lessons go on to collections, Option and Result.
Try it
Count the words of another sentence, and convert 37 degrees.