Evolve You
Published in

Evolve You

Rust

Difference between let, mut, and const in Rust

For getting started in Rust guys.

Photo by Paweł Czerwiński on Unsplash

Rust encourages us to use immutable variable. This will help when doing concurrency/parallel work. But what is the difference between let, mut and const.

Const

Being unable to change the value of a variable might have reminded you of
another…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Donald Le

Donald Le

231 Followers

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.