书栈网 · BookStack 本次搜索耗时 0.047 秒,为您找到 4390 个相关结果.
  • 18. Control Flow

    Control Flow Control Flow As we have seen, if is an expression in Rust. It is used to conditionally evaluate one of two blocks, but the blocks can have a value which then beco...
  • Destructors

    519 2019-06-07 《The Rustonomicon》
    Destructors Destructors What the language does provide is full-blown automatic destructors through theDrop trait, which provides the following method: fn drop (& mut self );...
  • Literals

    Literals C++ Integers Floating point numbers Boolean values Characters and Strings User-defined literals Rust Integers Floating point numbers Booleans Characters and Stri...
  • Try

    Overview Prerequisites Starting the stack Managing services Creating a project In this guide, you'll learn how to quickly get a tiny TiKV cluster running locally, then you'll...
  • 3.3. Functions

    Functions Function Parameters Function Bodies Contain Statements and Expressions Functions with Return Values Functions Functions are pervasive in Rust code. You’ve already ...
  • 基本语法

    基本语法 变量绑定 原生类型 结构体 枚举 函数 注释 基本语法 变量绑定 在Rust中,变量绑定 (variable bindings) 是通过let 关键字声明的: let x = 5 ; let mut x = 5 ; let x : i32 = 5 ; let ( a , b ...
  • 3.10.2. Macro changes

    Macro changes macro_rules! style macros Procedural macros More details Local helper macros Macros with $crate:: prefix. Macros using local_inner_macros Macro changes ...
  • 8.1. HALs

    HAL Design Patterns HAL Design Patterns This is a set of common and recommended patterns for writing hardware abstraction layers (HALs) for microcontrollers in Rust. These patt...
  • Cargo

    1508 2018-04-27 《Rust学习笔记》
    cargo crates.io cargo Cargo是Rust的包管理器。 Cargo Guide/英文版使用指南 The Manifest Format/英文版cargo.toml格式说明 crates.io crates.io是rust社区的crate注册。 用于发布crate,并提供下载。
  • 4.2. Hello, World!

    1225 2020-02-11 《Rust and WebAssembly》
    Hello, World! Clone the Project Template What's Inside wasm-game-of-life/Cargo.toml wasm-game-of-life/src/lib.rs wasm-game-of-life/src/utils.rs Build the Project wasm-game-of-...