https://github.com/ashsajal1/rust-practice
A repo to practice & learn rust.
https://github.com/ashsajal1/rust-practice
coding learning programming rust rust-lang rust-practice
Last synced: 4 months ago
JSON representation
A repo to practice & learn rust.
- Host: GitHub
- URL: https://github.com/ashsajal1/rust-practice
- Owner: ashsajal1
- Created: 2024-08-05T08:38:03.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-05T08:51:29.000Z (over 1 year ago)
- Last Synced: 2025-01-21T07:43:02.655Z (12 months ago)
- Topics: coding, learning, programming, rust, rust-lang, rust-practice
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# rust-modules
This is a learning project to learn about modules in Rust.
The project consists of ten modules, each covering a different topic related to modules in Rust. The modules are numbered from 1 to 10 and each module has exercises to be completed.
The project is organized in a Rust project using Cargo. The modules are organized in separate files in the `src` directory.
Each module has a description of the concepts covered and exercises to complete. The project also includes additional resources to help with learning Rust and modules.
The project includes a sample implementation of a calculator module. The calculator module has methods to add, subtract, multiply, and divide numbers. The module follows the module pattern for encapsulation and uses traits for polymorphism.
The project includes a `main.rs` file that demonstrates how to use the calculator module.
To run the project, navigate to the project directory and run `cargo run`.
## License
This project is licensed under the [MIT License](LICENSE).