https://github.com/0xsaksham/programming-concepts-rust
Rust code snippets showcasing arrow functions with parentheses, function calls, and a demonstration of statements vs. expressions. 🦀
https://github.com/0xsaksham/programming-concepts-rust
practice-programming rust rust-lang
Last synced: 10 months ago
JSON representation
Rust code snippets showcasing arrow functions with parentheses, function calls, and a demonstration of statements vs. expressions. 🦀
- Host: GitHub
- URL: https://github.com/0xsaksham/programming-concepts-rust
- Owner: 0xSaksham
- Created: 2023-11-17T08:54:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-21T11:50:34.000Z (over 2 years ago)
- Last Synced: 2025-06-18T06:43:39.616Z (about 1 year ago)
- Topics: practice-programming, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**Programming Concepts Rust**
**Description**
This repository contains a collection of Rust functions demonstrating various concepts of the language.
**Usage**
To run the code, save the files in a Rust project and call the functions from the `main` function.
**Examples**
* Calling the `plus_one` function:
```rust
let x = plus_one(4);
println!("x: {}", x);
```
* Calling the `another_function` function:
```rust
another_function();
```
* Calling the `parameter_function` function:
```rust
parameter_function(6);
```
* Calling the `two_parameter_function` function:
```rust
two_parameter_function(22, 'Z');
```
**Contributing**
Contributions to this repository are welcome. Please create an issue or pull request to submit your changes.
**License**
This project is licensed under the MIT License.