# Introduction

## Basics

* [Why Rust](https://learning-rust.gitbook.io/book/basics/why-rust)
* [Installation](https://learning-rust.gitbook.io/book/basics/installation)
* [Hello World](https://learning-rust.gitbook.io/book/basics/hello-world)
* [Cargo,crates and basic project structure](https://learning-rust.gitbook.io/book/basics/cargo-crates-and-basic-project-structure)
* [Comments and documenting the code](https://learning-rust.gitbook.io/book/basics/comments-and-documenting-the-code)
* [Variable bindings, constants and statics](https://learning-rust.gitbook.io/book/basics/variable-bindings-constants-and-statics)
* [Functions](https://learning-rust.gitbook.io/book/basics/functions)
* [Primitive data types](https://learning-rust.gitbook.io/book/basics/primitive-data-types)
* [Operators](https://learning-rust.gitbook.io/book/basics/operators)
* [Control flows](https://learning-rust.gitbook.io/book/basics/control-flows)

## Beyond The Basics

* [Vectors](https://learning-rust.gitbook.io/book/beyond-the-basics/vectors)
* [Structs](https://learning-rust.gitbook.io/book/beyond-the-basics/structs)
* [Enums](https://learning-rust.gitbook.io/book/beyond-the-basics/enums)
* [Generics](https://learning-rust.gitbook.io/book/beyond-the-basics/generics)
* [Impls and traits](https://learning-rust.gitbook.io/book/beyond-the-basics/impls-and-traits)

## The Tough Part

* [Ownership](https://learning-rust.gitbook.io/book/the-tough-part/ownership)
* [Borrowing](https://learning-rust.gitbook.io/book/the-tough-part/borrowing)
* [Lifetimes](https://learning-rust.gitbook.io/book/the-tough-part/lifetimes)

## Lets Get It Started

* [Code organization](https://learning-rust.gitbook.io/book/lets-get-it-started/code-organization)
* [Functions](https://learning-rust.gitbook.io/book/lets-get-it-started/functions)
* [Modules](https://learning-rust.gitbook.io/book/lets-get-it-started/modules)
* [Crates](https://learning-rust.gitbook.io/book/lets-get-it-started/crates)
* [Workspaces](https://learning-rust.gitbook.io/book/lets-get-it-started/workspaces)
* [use](https://learning-rust.gitbook.io/book/lets-get-it-started/use)
* [std, primitives and preludes](https://learning-rust.gitbook.io/book/lets-get-it-started/std-primitives-and-preludes)
* Site : <http://learning-rust.github.io>
* Medium: <https://medium.com/learning-rust>
* Gitbook: <https://www.gitbook.com/book/learning-rust/book>

> 🐣 I am a **Sri Lankan** 🇱🇰 Web Developer who lives in **Vietnam** 🇻🇳. So I am not a native English speaker and just learning Rust, If you found any mistake or something need to be changed, even a spelling or a grammar mistake, feel free to create a pull request. Thanks.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learning-rust.gitbook.io/book/undefined.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
