积分充值
 首页
前端开发
AngularDartElectronFlutterHTML/CSSJavaScriptReactSvelteTypeScriptVue.js构建工具
后端开发
.NetC#C++C语言DenoffmpegGoIdrisJavaJuliaKotlinLeanMakefilenimNode.jsPascalPHPPythonRISC-VRubyRustSwiftUML其它语言区块链开发测试微服务敏捷开发架构设计汇编语言
数据库
Apache DorisApache HBaseCassandraClickHouseFirebirdGreenplumMongoDBMySQLPieCloudDBPostgreSQLRedisSQLSQLiteTiDBVitess数据库中间件数据库工具数据库设计
系统运维
AndroidDevOpshttpdJenkinsLinuxPrometheusTraefikZabbix存储网络与安全
云计算&大数据
Apache APISIXApache FlinkApache KarafApache KyuubiApache OzonedaprDockerHadoopHarborIstioKubernetesOpenShiftPandasrancherRocketMQServerlessService MeshVirtualBoxVMWare云原生CNCF机器学习边缘计算
综合其他
BlenderGIMPKiCadKritaWeblate产品与服务人工智能亿图数据可视化版本控制笔试面试
文库资料
前端
AngularAnt DesignBabelBootstrapChart.jsCSS3EchartsElectronHighchartsHTML/CSSHTML5JavaScriptJerryScriptJestReactSassTypeScriptVue前端工具小程序
后端
.NETApacheC/C++C#CMakeCrystalDartDenoDjangoDubboErlangFastifyFlaskGinGoGoFrameGuzzleIrisJavaJuliaLispLLVMLuaMatplotlibMicronautnimNode.jsPerlPHPPythonQtRPCRubyRustR语言ScalaShellVlangwasmYewZephirZig算法
移动端
AndroidAPP工具FlutterFramework7HarmonyHippyIoniciOSkotlinNativeObject-CPWAReactSwiftuni-appWeex
数据库
ApacheArangoDBCassandraClickHouseCouchDBCrateDBDB2DocumentDBDorisDragonflyDBEdgeDBetcdFirebirdGaussDBGraphGreenPlumHStreamDBHugeGraphimmudbIndexedDBInfluxDBIoTDBKey-ValueKitDBLevelDBM3DBMatrixOneMilvusMongoDBMySQLNavicatNebulaNewSQLNoSQLOceanBaseOpenTSDBOracleOrientDBPostgreSQLPrestoDBQuestDBRedisRocksDBSequoiaDBServerSkytableSQLSQLiteTiDBTiKVTimescaleDBYugabyteDB关系型数据库数据库数据库ORM数据库中间件数据库工具时序数据库
云计算&大数据
ActiveMQAerakiAgentAlluxioAntreaApacheApache APISIXAPISIXBFEBitBookKeeperChaosChoerodonCiliumCloudStackConsulDaprDataEaseDC/OSDockerDrillDruidElasticJobElasticSearchEnvoyErdaFlinkFluentGrafanaHadoopHarborHelmHudiInLongKafkaKnativeKongKubeCubeKubeEdgeKubeflowKubeOperatorKubernetesKubeSphereKubeVelaKumaKylinLibcloudLinkerdLonghornMeiliSearchMeshNacosNATSOKDOpenOpenEBSOpenKruiseOpenPitrixOpenSearchOpenStackOpenTracingOzonePaddlePaddlePolicyPulsarPyTorchRainbondRancherRediSearchScikit-learnServerlessShardingSphereShenYuSparkStormSupersetXuperChainZadig云原生CNCF人工智能区块链数据挖掘机器学习深度学习算法工程边缘计算
UI&美工&设计
BlenderKritaSketchUI设计
网络&系统&运维
AnsibleApacheAWKCeleryCephCI/CDCurveDevOpsGoCDHAProxyIstioJenkinsJumpServerLinuxMacNginxOpenRestyPrometheusServertraefikTrafficUnixWindowsZabbixZipkin安全防护系统内核网络运维监控
综合其它
文章资讯
 上传文档  发布文章  登录账户
IT文库
  • 综合
  • 文档
  • 文章

无数据

分类

全部后端开发(18)Rust(18)

语言

全部中文(简体)(7)英语(3)韩语(2)西班牙语(1)日语(1)葡萄牙语(1)中文(繁体)(1)中文(繁体)(1)

格式

全部PDF文档 PDF(18)
 
本次搜索耗时 0.127 秒,为您找到相关结果约 18 个.
  • 全部
  • 后端开发
  • Rust
  • 全部
  • 中文(简体)
  • 英语
  • 韩语
  • 西班牙语
  • 日语
  • 葡萄牙语
  • 中文(繁体)
  • 中文(繁体)
  • 全部
  • PDF文档 PDF
  • 默认排序
  • 最新排序
  • 页数排序
  • 大小排序
  • 全部时间
  • 最近一天
  • 最近一周
  • 最近一个月
  • 最近三个月
  • 最近半年
  • 最近一年
  • pdf文档 The Rust Programming Language,2nd Edition

    libstd/sys/unix/backtrace/tracing/gcc_s.rs:42 2: 0x560ed90ee03e - std::panicking::default_hook: :{{closure}}::h59672b733cc6a455 at /stable-dist-rustc/build/src/ libstd/panicking.rs:351 197 3: 0x560ed90edc44 inner value Ok is wrapping. However, if the value is an Err value, this method calls the code in the closure, which is an anonymous function we define and pass as an argument to unwrap_or_else. We’ll be covering enough arguments that we added in Listing 12-9, to our closure in the argument err that appears between the vertical pipes. The code in the closure can then use the err value when it runs. We’ve added a
    0 码力 | 617 页 | 1.54 MB | 1 年前
    3
  • pdf文档 Rust 程序设计语言 简体中文版 1.85.0

    Rust 有安全保证,也需要测试确保 程序逻辑正确。第十二章中将会构建我们自己的 grep 命令行工具的功能子集实现,用于在文 件中搜索文本。为此会用到之前章节讨论的很多概念。 第十三章探索闭包(closure)和迭代器(iterator),这两个 Rust 特性来自函数式编程语言。 第十四章会深入探讨 Cargo 并介绍分享代码库的最佳实践。第十五章讨论标准库提供的智能 指针以及相关的 trait。 在的错误会使程 序 panic。 使用 match 处理 Result 的替代方案 这里有好多 match!match 确实很强大,不过也非常的原始。第十三章我们会介绍闭 包(closure),它会和定义在 Result 中的很多方法一起使用。在处理代码中的 Result 值时,使用这些方法往往比直接写 match 更简洁。 例如,这是另一个编写与示例 9-5 可以进行一些自定义的非 panic! 的错误处理。当 Result 是 Ok 时,这个方法的行为类似于 unwrap:它返回 Ok 内部封装的值。然而,当其值是 Err 时,该方法会调用一个闭包(closure),也就是一个我们定义的作为参数传递给 unwrap_or_else 的匿名函数。第十三章会更详细地介绍闭包。现在你需要理解的是 unwrap_or_else 会将 Err 的内部值,也就是示例
    0 码力 | 562 页 | 3.23 MB | 28 天前
    3
  • pdf文档 Rust 程序设计语言简体中文版

    有安全保证,也需要测试确保 程序逻辑正确。第 12 章中将会构建我们自己的 grep 命令行工具的功能子集实现,用于在文 件中搜索文本。为此会用到之前章节讨论的很多概念。 第 13 章探索闭包(closure)和迭代器(iterator),这两个 Rust 特性来自函数式编程语言。 第 14 章会深入探讨 Cargo 并介绍分享代码库的最佳实践。第 15 章讨论标准库提供的智能指 针以及相关的 Trait。 不存在的错误会使程序 panic。 不同于使用 match 和 Result 这里有好多 match !match 确实很强大,不过也非常的原始。第十三章我们会介绍闭 包(closure),它会和定义在 Result 中的很多方法一起使用。在处理代码中 的 Result 值时,相比于使用 match ,使用这些方法会更加简洁。 例如,这是另一个编写与示例 可以进行一些自定义的非 panic! 的错误处理。当 Result 是 Ok 时,这个方法的行为类似于 unwrap :它返回 Ok 内部封装的值。然而,当其值 是 Err 时,该方法会调用一个 闭包(closure),也就是一个我们定义的作为参数传递给 unwrap_or_else 的匿名函数。第十三章 会更详细的介绍闭包。现在你需要理解的是 unwrap_or_else 会将 Err 的内部值,也就是示例
    0 码力 | 600 页 | 12.99 MB | 1 年前
    3
  • pdf文档 Rust 语言学习笔记

    main() { let mut x: String = String::from("abc"); let mut some_closure = move |c: char| x.push(c); let y = some_closure('d'); println!("x={:?}", x); } 上述代码会报错。 这是因为 move 关键字,会把闭包中的外部变量的所有权 let mut x: String = String::from("abc"); { let mut some_closure = |c: char| x.push(c); some_closure('d'); } println!("x={:?}", x); //成功打印:x="abcd" } 我们只是去掉了 move,去掉 --features "shumway pdf" 第六章 Rust 语言高级特性 6.1 函数式编程 6.1.1 闭包 闭包的定义有两种: 闭包(英语:Closure),又称词法闭包(Lexical Closure)或函数闭包 (function closures),是引用了自由变量的函数。这个被引用的自由变量将 和这个函数一同存在,即使已经离开了创造它的环境也不例外。 有另一
    0 码力 | 117 页 | 2.24 MB | 1 年前
    3
  • pdf文档 从零蛋开始学 Rust

    ��������� ���������������� iter_mut() �������������� ������ Rust ��������� ����Rust �� Closure ��� Closure � ���������������������������������� ������� � ������� �� ���� ����������������������� ������� } |parameter| { // ������� } ||{ // ������� } let closure_function = |parameter| { // ������� } closure_function(parameter); //invoking ������������������������������������� fn main(){ let val = 10; // ��������� val let closure2 = |x| { x + val // ������������� }; println!("{}",closure2(2)); } 12 �� � � Description Deref std::ops::Deref ���������������
    0 码力 | 168 页 | 1.24 MB | 1 年前
    3
  • pdf文档 Comprehensive Rust(Persian ) 202412

    shared reference to the closure, which means the closure can be executed repeatedly and even concurrently . An FnMut (e.g. accumulate) might mutate captured values. The closure object is accessed via exclusive concurrently . If you have an FnOnce (e.g. multiply_sum), you may only call it once. Doing so consumes the closure and any values captured by move . 107 FnMut � � � � � � � � � � � FnOnce � � � . Fn � � � � � � FnOnce � � � � � � � � � � � � � � � � � � . � � � � � � � � � � � � � � � � � � � � � � � � � � � closure � � � � � � � � � � � � � � � FnOnce � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
    0 码力 | 393 页 | 987.97 KB | 10 月前
    3
  • pdf文档 Comprehensive Rust(English) 202412

    shared reference to the closure, which means the closure can be executed repeatedly and even concurrently. An FnMut (e.g. accumulate) might mutate captured values. The closure object is accessed via exclusive concurrently. If you have an FnOnce (e.g. multiply_sum), you may only call it once. Doing so consumes the closure and any values captured by move. FnMut is a subtype of FnOnce. Fn is a subtype of FnMut and FnOnce takes a closure, you should take FnOnce if you can (i.e. you call it once), or FnMut else, and last Fn. This allows the most flexibility for the caller. 104 In contrast, when you have a closure, the most
    0 码力 | 382 页 | 1.00 MB | 10 月前
    3
  • pdf文档 Comprehensive Rust(日语) 202412

    shared reference to the closure, which means the closure can be executed repeatedly and even concurrently. An FnMut (e.g. accumulate) might mutate captured values. The closure object is accessed via exclusive concurrently. If you have an FnOnce (e.g. multiply_sum), you may only call it once. Doing so consumes the closure and any values captured by move. FnMut は FnOnce のサブタイプで、Fn は FnMut と FnOnce のサブタイプです。つまり、FnOnce を使用するようにします。これにより、呼び出し元に最も柔軟に対応できます。 In contrast, when you have a closure, the most flexible you can have is Fn (which can be passed to a consumer of any of the 3 closure traits), then FnMut, and lastly FnOnce. The compiler
    0 码力 | 381 页 | 1.36 MB | 10 月前
    3
  • pdf文档 Comprehensive Rust ?

    that takes a closure, you should take FnOnce if you can (i.e. you call it once), or FnMut else, and last Fn. This allows the most flexibility for the caller. In contrast, when you have a closure, the most compiler also infers Copy (e.g. for add_3) and Clone (e.g. multiply_sum), depending on what the closure captures. 100 By default, closures will capture by reference if they can. The move keyword makes the way to 10. • Now what if we want to return a value? • Look at docs again: – thread::spawn's closure returns T – JoinHandle .join() returns thread::Result • Use the Result return value from handle
    0 码力 | 378 页 | 1009.46 KB | 1 年前
    3
  • pdf文档 Comprehensive Rust(한국어) 202412

    6 Default 트레잇 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 17.7 클로저 (Closure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 17.8 연습문제: 바이너리트리 . . . From 과 Into 10 minutes 테스트 5 minutes Read 와 Write 10 minutes Default, 구조체 업데이트 문법 5 minutes 클로저 (Closure) 20 minutes 연습문제: 바이너리 트리 30 minutes 표준 라이브러리 타입과 마찬가지로 각 트레잇에 관한 문서를 검토하는 데시간을 할애하세요. 이 섹션은 깁니다 provides convenience methods that use it. • The .. syntax is called struct update syntax. 17.7 클로저 (Closure) 클로저 혹은 람다표현식은 익명타입입니다. 이들은 Fn,FnMut, FnOnce 라는 특별한 트레잇을 구현합 니다: fn apply_with_log(func: impl FnOnce(i32)
    0 码力 | 369 页 | 1.29 MB | 10 月前
    3
共 18 条
  • 1
  • 2
前往
页
相关搜索词
TheRustProgrammingLanguage2ndEdition程序设计程序设计语言简体中文文版中文版简体中文版1.85学习笔记零蛋开始ComprehensivePersian202412English日语
IT文库
关于我们 文库协议 联系我们 意见反馈 免责声明
本站文档数据由用户上传或本站整理自互联网,不以营利为目的,供所有人免费下载和学习使用。如侵犯您的权益,请联系我们进行删除。
IT文库 ©1024 - 2025 | 站点地图
Powered By MOREDOC AI v3.3.0-beta.70
  • 关注我们的公众号【刻舟求荐】,给您不一样的精彩
    关注我们的公众号【刻舟求荐】,给您不一样的精彩