検索
Results of 41 - 50 of about 57 for mut (0.049 sec.)
- dropの延期 - Rust By Example 日本語版 6579
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
tatus . use std::process::Command; fn main() { let mut child = Command::new("sleep").arg("5").spawn().unw...
- https://man.plustar.jp/rust/example/std_misc/process/wait.html - [similar]
- スレッド - Rust By Example 日本語版 6579
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
// spawnされるクロージャを保持するためのベクタ let mut children = vec![]; for i in 0..NTHREADS { // Spin...
- https://man.plustar.jp/rust/example/std_misc/threads.html - [similar]
- メモリ解放 - Rust By Example 日本語版 6579
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
機能がつきます。 impl Drop for Droppable { fn drop(&mut self) { println!("> Dropping {}", self.name); } }...
- https://man.plustar.jp/rust/example/trait/drop.html - [similar]
- 型推論 - Rust By Example 日本語版 6579
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
array). // 空のベクトル(可変長の配列)を生成 let mut vec = Vec::new(); // At this point the compiler do...
- https://man.plustar.jp/rust/example/types/inference.html - [similar]
- 値の凍結 - Rust By Example 日本語版 6579
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
スコープ外になるまで変更できません。 fn main() { let mut _mutable_integer = 7i32; { // Shadowing by immutab...
le `_mutable_integer` // イミュータブルな`_mutable_integer`...
でシャドーイングする let _mutable_integer = _mutable_integer; // Error! `_mutabl...
e_integer` is frozen in this scope // エラー! `_mutable_integer`はこのスコープでは凍結している。 _muta...
- https://man.plustar.jp/rust/example/variable_bindings/freeze.html - [similar]
- テストケース: 連結リスト - Rust By Example 日本語版 6490
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
e an empty linked list // 空の連結リストを作成 let mut list = List::new(); // Prepend some elements // 要...
- https://man.plustar.jp/rust/example/custom_types/enum/testcase_linked_list.html - [similar]
- エラー型を定義する - Rust By Example 日本語版 6490
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
l fmt::Display for DoubleError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "invali...
- https://man.plustar.jp/rust/example/error/multiple_error_types/define_error_type... - [similar]
- ?の他の活用法 - Rust By Example 日本語版 6490
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
impl fmt::Display for EmptyVec { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "invali...
- https://man.plustar.jp/rust/example/error/multiple_error_types/reenter_question_... - [similar]
- エラーをラップする - Rust By Example 日本語版 6490
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
l fmt::Display for DoubleError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { Dou...
- https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
- クロージャを受け取る関数 - Rust By Example 日本語版 6490
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
よって使用される外側の変数を入れます。同時に Fn 、 FnMut 、 FnOnce という名のトレイトのいずれか一つを介して...
で指定するだけでは、まだ曖昧です。(訳注: &self 、 &mut self 、 self のいずれをとるのかがわからないため)そ...
のため、 Fn 、 FnMut 、 FnOnce のいずれか一つを実装することで対応してい...
apply(print); } 参照 A thorough analysis , Fn , FnMut , and FnOnce 関連キーワード: 関数 , Result , self...
- https://man.plustar.jp/rust/example/fn/closures/anonymity.html - [similar]