Giter Site home page Giter Site logo

learning-rust's Introduction

从零蛋开始学 Rust

Rust 是一门超现代的语言,由 Mozilla 公司开发。

Rust 和 Go 语言是当下最流行的可用于系统级开发的语言,虽然 Rust 没有 Go 语言那么火爆,但不能否认它是一门优秀的语言。

Rust 语言一直不温不火。但最近,由于头条公司的即时通讯工具后端使用 Rust 语言开发,意味着 Rust 语言正式进入我们顶尖公司的常用语言之一。

详情请参考 字节跳动公司的飞聊团队已经用上了 Rust 语言了

Rust 语言的愿景是:极度并发且极度安全的系统的语言。这使得 Rust 语言瞄准的是工业系统的霸者 - C++ 语言。

Rust 是一门编译语言,因此它的效率可以媲美 C 或 C++ 语言。

本教程,Rust 基础教程,以所有语言都有的特性视角,一步一步揭开 Rust 神秘的面纱。

这是目前为止,最快速的学习方法...

我是读者吗?

你能找到这里,说明你一定是位爱学习的人,对于爱学习的人,肯定是 Rust 基础教程的读者。

说句实话。

Rust 比 C/C++ 简单,但比 Go 语言难...所以,你学习之前,请权衡再三。

本教程只是以所有语言都通用的知识来讲解 Rust。并不会深入学习 Rust 那些独有的东西。

先决条件

Rust 这门语言,怎么说呢? 有点类似于 C 语言,但它的指针又没有 C 语言那么复杂;有点类似于 Go 语言,但比 Go 语言复杂多了。

Rust 语言对自己的定位是取代 C++ 语言。

所以,Rust 语言对于大多数人来说,还是比较难上手的...

所以,我们希望,你在学习 Rust 语言之前,最好,最好有点 C/C++ 语言基础。

Table Of Contents

1. Rust 语言简介

2. Rust 开发环境配置

3. Rust Hello World

4. Rust 数据类型

5. Rust 变量定义

6. Rust 常量定义

7. Rust 字符串

8. Rust 运算符

9. Rust 条件判断

10. Rust 循环语句

11. Rust 函数 fn

12. Rust 元组 tuple

13. Rust 数组

14. Rust 所有权 Ownership

15. Rust 借用 Borrowing

16. Rust 切片 Slice

17. Rust 结构体 Struct

18. Rust 枚举 Enum

19. Rust 模块 Modules

20. Rust Collections

21. Rust 错误处理

22. Rust 泛型

23. Rust IO

24. Rust 文件读写

25. Rust Cargo 包管理器

26. Rust 迭代器 Iterator

27. Rust 闭包 Closure

28. Rust 智能指针

29. Rust 多线程并发编程

learning-rust's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.