Skip to content

preetecool/guessing_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

Learning Rust concepts: let, mut, match, arms, cargo, references, and shadowing.

let & mut

The let keyword is used to declare new variables into the current scope. The mut (mutable) keyword specifies the variable's value can change.

match & arms

The match keyword provides pattern-matching expressions made up of arms. An arm is a pattern to match against.

cargo

Cargo is the package manager for Rust.

references

A reference is a way to let multiple parts of our code access one piece of data without copying that data into memory multiple times.

shadowing

Shadowing lets us reuse variable names, preventing the creation of two or more unique variables. Shadowing is often used to convert a value from one type to another.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages