Comprehensive Rust(繁体中文)
330 63.5 非同步管道 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330 64 Future 控制流程 332 64.1 加入 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 上台開發。課程 內容包含微控制器和處理器。 • 並行:這個全天課程著重於 Rust 中的並行問題。我們將探討傳統並行 (使用執行緒和互斥鎖進行先 占式排程) 以及 async/await 並行 (使用 future 進行合作多工處理)。 非課程目標 Rust 是大型的程式語言,無法在幾天內就介紹完畢。因此,本課程不包含下列內容: • 學習如何開發巨集 (macro)。請直接閱讀 Rust Book 的 #[deny(unsafe_op_in_unsafe_fn)]. Try adding it and see what happens. This will likely change in a future Rust edition. 30.6 實作不安全的特徵 與函式類似,如果實作程序必須保證符合特定條件才能避免未定義的行為,您可以將特徵標示為 unsafe。 舉例來說,zerocopy crate0 码力 | 358 页 | 1.41 MB | 10 月前3Julia 1.11.4
Helper Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366 73 Future 1368 74 Interactive Utilities 1369 75 Lazy Artifacts 1379 76 LibCURL 1380 77 LibGit2 1381 78 definition! But there's an exception: future calls to newfun from the REPL work as expected, being able to both see and call the new definition of newfun. However, future calls to tryeval will continue to end return g g() = 0 end as it is not clear what function will end up getting defined. In the future, it might be an error to define local methods in this manner. For cases like this use anonymous0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.5 Documentation
Helper Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366 73 Future 1368 74 Interactive Utilities 1369 75 Lazy Artifacts 1379 76 LibCURL 1380 77 LibGit2 1381 78 definition! But there's an exception: future calls to newfun from the REPL work as expected, being able to both see and call the new definition of newfun. However, future calls to tryeval will continue to end return g g() = 0 end as it is not clear what function will end up getting defined. In the future, it might be an error to define local methods in this manner. For cases like this use anonymous0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.6 Release Notes
Helper Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366 73 Future 1368 74 Interactive Utilities 1369 75 Lazy Artifacts 1379 76 LibCURL 1380 77 LibGit2 1381 78 definition! But there's an exception: future calls to newfun from the REPL work as expected, being able to both see and call the new definition of newfun. However, future calls to tryeval will continue to end return g g() = 0 end as it is not clear what function will end up getting defined. In the future, it might be an error to define local methods in this manner. For cases like this use anonymous0 码力 | 2007 页 | 6.73 MB | 3 月前3julia 1.10.10
Helper Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1171 71 Future 1172 72 Interactive Utilities 1173 73 Lazy Artifacts 1181 74 LibCURL 1182 75 LibGit2 1183 76 definition! But there's an exception: future calls to newfun from the REPL work as expected, being able to both see and call the new definition of newfun. However, future calls to tryeval will continue to end return g g() = 0 end as it is not clear what function will end up getting defined. In the future, it might be an error to define local methods in this manner. For cases like this use anonymous0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.10.9
Helper Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1171 71 Future 1172 72 Interactive Utilities 1173 73 Lazy Artifacts 1181 74 LibCURL 1182 75 LibGit2 1183 76 definition! But there's an exception: future calls to newfun from the REPL work as expected, being able to both see and call the new definition of newfun. However, future calls to tryeval will continue to end return g g() = 0 end as it is not clear what function will end up getting defined. In the future, it might be an error to define local methods in this manner. For cases like this use anonymous0 码力 | 1692 页 | 6.34 MB | 3 月前3julia 1.13.0 DEV
Helper Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1422 74 Future 1424 75 Interactive Utilities 1425 76 Julia Syntax Highlighting 1436 76.1 Functions . . . . . definition! But there's an exception: future calls to newfun from the REPL work as expected, being able to both see and call the new definition of newfun. However, future calls to tryeval will continue to endCHAPTER 13. METHODS 179 as it is not clear what function will end up getting defined. In the future, it might be an error to define local methods in this manner. For cases like this use anonymous0 码力 | 2058 页 | 7.45 MB | 3 月前3Julia 1.12.0 RC1
Helper Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1420 74 Future 1422 75 Interactive Utilities 1423 76 Julia Syntax Highlighting 1434 76.1 Functions . . . . . definition! But there's an exception: future calls to newfun from the REPL work as expected, being able to both see and call the new definition of newfun. However, future calls to tryeval will continue to endCHAPTER 13. METHODS 179 as it is not clear what function will end up getting defined. In the future, it might be an error to define local methods in this manner. For cases like this use anonymous0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta4
Helper Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1419 74 Future 1421 75 Interactive Utilities 1422 76 Julia Syntax Highlighting 1433 76.1 Functions . . . . . definition! But there's an exception: future calls to newfun from the REPL work as expected, being able to both see and call the new definition of newfun. However, future calls to tryeval will continue to endCHAPTER 13. METHODS 179 as it is not clear what function will end up getting defined. In the future, it might be an error to define local methods in this manner. For cases like this use anonymous0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta3
Helper Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1419 74 Future 1421 75 Interactive Utilities 1422 76 Julia Syntax Highlighting 1433 76.1 Functions . . . . . definition! But there's an exception: future calls to newfun from the REPL work as expected, being able to both see and call the new definition of newfun. However, future calls to tryeval will continue to endCHAPTER 13. METHODS 179 as it is not clear what function will end up getting defined. In the future, it might be an error to define local methods in this manner. For cases like this use anonymous0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 21 条
- 1
- 2
- 3