Rust 程序设计语言 简体中文版 1.85.0match 表达式和 if let 控 制流结构。在 Rust 中,创建自定义类型需要用到结构体和枚举。 第七章介绍 Rust 的模块(module)系统,其中的私有性规则用来组织代码和公开的 API(应 用程序接口)。第八章讨论标准库提供的常见集合数据结构,例如 Vector(向量)、字符串和 Hash Map(散列表)。第九章探索 Rust 的错误处理的理念与技术。 第十章深入介绍泛型(generic)、Trait rustup doc 在浏览器中查看本地 文档。 任何时候,如果你拿不准标准库中的类型或函数的用途和用法,请查阅应用程序接口 (application programming interface,API)文档! 文本编辑器和集成开发环境(Integrated Development Environments, IDE) 本书不会假设你使用何种工具来编写 Rust 代码。几乎任何文本编辑器都可以搞定!然而,很 的简写,它表示任何至少是 0.8.5 但小于 0.9.0 的版本。 Cargo 认为这些版本与 0.8.5 版本的公有 API 相兼容,这样的版本指定确保了我们可以获取 能使本章代码编译的最新的补丁(patch)版本。任何大于等于 0.9.0 的版本不能保证和接下 来的示例采用了相同的 API。 现在,不修改任何代码,构建项目,如示例 2-2 所示。 $ cargo build Updating crates0 码力 | 562 页 | 3.23 MB | 23 天前3
Julia 1.11.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491 38.2 Public API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492CONTENTS viii 38 Idioms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1132 50.3 API docs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1133 50.4 Implementation Rounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1300 67.9 API reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1301 68 Delimited0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491 38.2 Public API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492CONTENTS viii 38 Idioms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1132 50.3 API docs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1133 50.4 Implementation Rounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1300 67.9 API reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1301 68 Delimited0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491 38.2 Public API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492CONTENTS viii 38 Idioms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1132 50.3 API docs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1133 50.4 Implementation Rounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1300 67.9 API reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1301 68 Delimited0 码力 | 2007 页 | 6.73 MB | 3 月前3
Curve元数据节点高可用11 of 30 $ ETCDCTL_API=3 ./bin/etcdctl put foo bar $ ETCDCTL_API=3 ./bin/etcdctl get foo --write-out=json revision: 2 $ ETCDCTL_API=3 ./bin/etcdctl put foo bar $ ETCDCTL_API=3 ./bin/etcdctl get ETCDCTL_API=3 ./bin/etcdctl put hello world $ ETCDCTL_API=3 ./bin/etcdctl get foo --write-out=json revision: 4 $ ETCDCTL_API=3 ./bin/etcdctl get hello --write-out=json revision: 4 $ ETCDCTL_API=3 ./bin/etcdctl /bin/etcdctl put hello world $ ETCDCTL_API=3 ./bin/etcdctl get hello --write-out=json revision: 5 3.2.2 举例说明Campagin流程 场景描述:三个mds(mds1, mds2, mds3),希望实现一个mds作为主提供服务,另外两个mds作为备在主挂掉的时候提供服务的功能。如果利用上述的Campagin进行选举,过程如下:0 码力 | 30 页 | 2.42 MB | 6 月前3
julia 1.13.0 DEV. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502 38.2 Public API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503 38.3 Sessions Idioms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1181 51.3 API docs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1182 51.4 Implementation Rounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1353 68.9 API reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1354 69 Delimited0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503 38.2 Public API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504 38.3 Sessions Idioms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1179 51.3 API docs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1180 51.4 Implementation Rounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1351 68.9 API reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1352 69 Delimited0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502 38.2 Public API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503 38.3 Sessions Idioms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1178 51.3 API docs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1179 51.4 Implementation Rounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1350 68.9 API reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1351 69 Delimited0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502 38.2 Public API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503 38.3 Sessions Idioms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1178 51.3 API docs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1179 51.4 Implementation Rounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1350 68.9 API reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1351 69 Delimited0 码力 | 2057 页 | 7.44 MB | 3 月前3
julia 1.12.0 beta1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502 38.2 Public API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503 38.3 Sessions Idioms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1170 50.3 API docs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1171 50.4 Implementation Rounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1342 67.9 API reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1343 68 Delimited0 码力 | 2047 页 | 7.41 MB | 3 月前3
共 35 条
- 1
- 2
- 3
- 4













