Pythonic interface for Rust.
Add this to your Cargo.toml:
[dependencies]
rspy = "0"
Python | Rust |
---|---|
builtins.enumerate | rspy::Iterable::enumerate (trait way) |
rspy::enumerate (function way) | |
builtins.input | rspy::input |
builtins.reversed | rspy::Reversed::reversed (trait way) |
rspy::reversed (function way) | |
builtins.sorted | rspy::Iterable::sorted (trait way) |
rspy::sorted (function way) | |
pathlib.Path.mkdir | rspy::pathlib::PyPath::mkdir |
string.ascii_lowercase | rspy::string::ASCII_LOWERCASE |
string.ascii_uppercase | rspy::string::ASCII_UPPERCASE |
time.sleep | rspy::time::sleep |