官术网_书友最值得收藏!

Summary

Rust is a multi-paradigm language with exceptional concepts: the language emphasizes data and behavior separation with structures and traits, uses macros for metaprogramming, and leverages explicit ownership of memory to determine variable lifetimes. Knowing these lifetimes removes the need for runtime garbage collection and, at the same time, greatly facilitates concurrency by allowing mutable borrowing only in certain circumstances.

Consequently, threads and other asynchronous processes can change variables only when they have mutable ownership of them, something that is mostly enforced at compile time, but can also be done at runtime! Therefore, safe Rust is effectively free of data races.

Another strong point of the Rust ecosystem is its diverse and welcoming community. Sponsored by Mozilla, development is guided by RFCs, events are organized and centrally advertised, and learning resources are available online. Another way to be a part of the ecosystem is to contribute packages to crates.io (https://crates.io/), Rust's public package repository. Read the next chapter to find out more about cargo, Rust's universal tool to build and package.

主站蜘蛛池模板: 茌平县| 体育| 建始县| 睢宁县| 布拖县| 米易县| 航空| 搜索| 迁西县| 彰化县| 滦平县| 墨玉县| 曲麻莱县| 溧阳市| 互助| 靖远县| 房产| 宁国市| 永德县| 泗阳县| 石城县| 贺州市| 庆阳市| 东辽县| 阳信县| 宁南县| 织金县| 阜新| 晋宁县| 武隆县| 伊宁县| 景德镇市| 牡丹江市| 永修县| 丽水市| 集贤县| 年辖:市辖区| 南丰县| 通化市| 娱乐| 邵阳市|