---
title: "Discussion on \"A Handy Rust Cheat Sheet for Beginners\" | Hashnode"
description: "Discussion on \"A Handy Rust Cheat Sheet for Beginners\". 1. Variables and Data Types\n\nDeclare a variable (immutable by default):\n  let variable_name = value;\n\n\nDeclare a mutable variable:\n  let mut variable_name = value;\n\n\nSpecify a data type:\n  let variable_name: data_type = value;\n\n\nCommon data types:\n\nI..."
url: "https://hashnode.com/posts/a-handy-rust-cheat-sheet-for-beginners/6432a5ed9f3107e7d4f7205e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A Handy Rust Cheat Sheet for Beginners](https://nyakio.hashnode.dev/a-handy-rust-cheat-sheet-for-beginners?utm_source=hashnode&utm_medium=feed)

1\. Variables and Data Types Declare a variable (immutable by default): let variable\_name = value; Declare a mutable variable: let mut variable\_name = value; Specify a data type: let variable\_name: data\_type = value; Common data types: I...

Apr 9, 2023 · 2 min read · nyakio.hashnode.dev  
Read the article

-   [#rust-beginner](https://hashnode.com/tag/rust-beginner)
-   [#rust-basic](https://hashnode.com/tag/rust-basic)
-   [#rust](https://hashnode.com/tag/rust)
-   [#rust-lang](https://hashnode.com/tag/rust-lang)

## Written by

[Nyakio Maina](https://hashnode.com/@Nyakio)

@Nyakio · Nairobi, Kenya

  
[View profile](https://hashnode.com/@Nyakio)

.rs

Blockchain Engineer || Studying cryptography &amp; zk👩🏿‍💻

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
