Rust examples by sushant
This repository contains examples of RUST language.
#Rust Differences
- All Variables are by default Immutable, to change to mutable add mut before the name.
- If we are declaring any variable as const instead of let it cannot be changed to mutable by adding mut.
- constants may be set only to a constant expression, not the result of a function call or any other value that could only be computed at runtime
- Underscores can be inserted in numeric literals to improve readability. 100_000 is perfectly valid numeric.
- cannot loop through tuples