> For the complete documentation index, see [llms.txt](https://learning-rust.gitbook.io/book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learning-rust.gitbook.io/book/undefined.md).

# Introduction

## Basics

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

## Beyond The Basics

* [Vectors](/book/beyond-the-basics/vectors.md)
* [Structs](/book/beyond-the-basics/structs.md)
* [Enums](/book/beyond-the-basics/enums.md)
* [Generics](/book/beyond-the-basics/generics.md)
* [Impls and traits](/book/beyond-the-basics/impls-and-traits.md)

## The Tough Part

* [Ownership](/book/the-tough-part/ownership.md)
* [Borrowing](/book/the-tough-part/borrowing.md)
* [Lifetimes](/book/the-tough-part/lifetimes.md)

## Lets Get It Started

* [Code organization](/book/lets-get-it-started/code-organization.md)
* [Functions](/book/lets-get-it-started/functions.md)
* [Modules](/book/lets-get-it-started/modules.md)
* [Crates](/book/lets-get-it-started/crates.md)
* [Workspaces](/book/lets-get-it-started/workspaces.md)
* [use](/book/lets-get-it-started/use.md)
* [std, primitives and preludes](/book/lets-get-it-started/std-primitives-and-preludes.md)
* 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.
