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

    Conditions Ternary operator Conditional “if let” Conditions Conditional code is similar between C++ and Rust. You test the boolean truth of an expression and you can use bool...
  • 4.6.循环

    循环 loop while for Enumerate 方法 对于范围(On ranges): 对于迭代器(On iterators): 提早结束迭代(Ending iteration early) 循环标签(Loop labels) 循环 loops.md commit 549270d4e66cc77b1f02cea13aaad9...
  • Try

    Overview Prerequisites Starting the stack Managing services Creating a project We are currently refactoring our documentation. Please excuse any problems you may find and re...
  • Introduction

    Introduction Introduction Welcome to the Rust Edition Guide! "Editions" are Rust's way of communicatinglarge changes in the way that it feels to write Rust code. In this guide...
  • 宏 宏和函数的区别 使用 macro_rules! 的声明宏用于通用元编程 用于从属性生成代码的过程宏 如何编写自定义 derive 宏 类属性宏 类函数宏 总结 宏 ch19-06-macros.md commit 7ddc46460f09a5cd9bd2a620565bdc20b3315ea9 我们已经在本书中使用过...
  • 文档测试的 compile-fail

    文档测试现在可以编译失败 fn foo() {} 文档测试现在可以编译失败 现在可以创建 compile-fail 测试在 Rustdoc 中,如下: /// ```compile_fail /// let x = 5; /// x += 2; // shouldn't compile! /// fn foo() {}...
  • DSL (Domain Specific Languages)

    Domain Specific Languages (DSLs) Domain Specific Languages (DSLs) A DSL is a mini “language” embedded in a Rust macro. It is completely validRust because the macro system expan...
  • Helpful resources

    227 2021-09-20 《Deno v1.14.0 Manual》
    Helpful resources WebAssembly API Working with Non-Numeric Types Optimization Helpful resources This page contains some further information that is helpful when using and/or ...
  • Helpful resources

    208 2022-06-23 《Deno v1.21.2 Manual》
    Helpful resources WebAssembly API Working with Non-Numeric Types Optimization Helpful resources This page contains some further information that is helpful when using and/or ...