You can call a non-instance static method in Rust by using the ::
separator.
Example:
impl Solution {
pub fn return_empty_string() -> String {
// returns ""
return String::new();
}
}
Note that many types have a new()
function.