検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 37 for we (0.026 sec.)
Testcase: map-reduce - Rust By Example 日本語版 15801
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ives like Mutex es or Channel s.) In this example, we will calculate the sum of all digits in a block of ... numbers. We will do this by parcelling out chunks of the block ... ill sum its tiny block of digits, and subsequently we will sum the intermediate sums produced by each th ... read. Note that, although we're passing references across thread boundaries, Ru ...
https://man.plustar.jp/rust/example/std_misc/threads/testcase_mapreduce.html - [similar]
Combinators: and_then - Rust By Example 日本語版 10766
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... shi } #[derive(Debug)] enum Day { Monday, Tuesday, Wednesday } // We don't have the ingredients to make ... ood { Food::Sushi => None, _ => Some(food), } } // We have the recipe for everything except Cordon Bleu. ... u => None, _ => Some(food), } } // To make a dish, we need both the recipe and the ingredients. // We ca ... le_v2(food) { Some(food) => println!("Yay! On {:?} we get to eat {:?}.", day, food), None => println!("O ...
https://man.plustar.jp/rust/example/error/option_unwrap/and_then.html - [similar]
Iterator::find - Rust By Example 日本語版 9203
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ` takes `&mut self` meaning the caller may be borrowed // and modified, but not consumed. // `find`は`&m ... to_iter(); // `iter()` for vecs yields `&i32`, and we want to reference one of its // items, so we have ... = 2)); // `into_iter()` for vecs yields `i32`, and we want to reference one of // its items, so we have ...
https://man.plustar.jp/rust/example/fn/closures/closure_examples/iter_find.html - [similar]
イテレータ - Rust By Example 日本語版 9203
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 義だけを要求する。 impl Iterator for Fibonacci { // We can refer to this type using Self::Item type Item ... = u32; // Here, we define the sequence using `.curr` and `.next`. // ... e next value is wrapped in `Some` and returned. // We use Self::Item in the return type, so we can chang ...
https://man.plustar.jp/rust/example/trait/iter.html - [similar]
Rust By Example 日本語版 8887
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... す. #[allow(dead_code)] struct Structure(i32); // However, custom types such as this structure require mo ... :?}", point); // Error. Both `Debug` and `Display` were implemented, but `{:b}` // requires `fmt::Binary ... _of_val(&xs)); // Arrays can be automatically borrowed as slices // 配列は自動的にスライスとして借用され ... tom_right.y` will be the same as `point.y` because we used that field // from `point` // `bottom_right.y ...
https://man.plustar.jp/rust/example/print.html - [similar]
エラーをラップする - Rust By Example 日本語版 8571
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ; #[derive(Debug)] enum DoubleError { EmptyVec, // We will defer to the parse error implementation for t ... vec.first().ok_or(DoubleError::EmptyVec)?; // Here we implicitly use the `ParseIntError` implementation ... of `From` (which // we defined above) in order to create a `DoubleError`. ...
https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
ポインタとref - Rust By Example 日本語版 8571
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 比較されていることになる。 // `&i32` // `&val` // ^ We see that if the matching `&`s are dropped, then th ... { // Got a reference. Gotta dereference it before we can // add anything to it. // リファレンスを取得、 ... はデリファレンスする必要がある。 *m += 10; println!("We added 10. `mut_value`: {:?}", m); }, } } See also: ...
https://man.plustar.jp/rust/example/flow_control/match/destructuring/destructure... - [similar]
パイプ - Rust By Example 日本語版 8571
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... / `stdin` has type `Option<ChildStdin>`, but since we know this instance // must have one, we can direct ... erwise `wc` wouldn't start processing the // input we just sent. // `stdin`は上のプロセスコールのあとには ...
https://man.plustar.jp/rust/example/std_misc/process/pipe.html - [similar]
演算子のオーバーロード - Rust By Example 日本語版 8571
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... used to specify the functionality of `+`. // Here, we make `Add<Bar>` - the trait for addition with a RH ... as called"); FooBar } } // By reversing the types, we end up implementing non-commutative addition. // H ... ere, we make `Add<Foo>` - the trait for addition with a RH ...
https://man.plustar.jp/rust/example/trait/ops.html - [similar]
エラー型を定義する - Rust By Example 日本語版 8413
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... be customized for our error handling cases. // Now we will be able to write our own errors, defer to an ... ing error // implementation, or do something in between. // 自前のエラー型の定義。エラーハンドリングのケ ... なるなどと気にする必要はありません。 // // Note that we don't store any extra info about the errors. This ... means we can't state // which string failed to parse withou ...
https://man.plustar.jp/rust/example/error/multiple_error_types/define_error_type... - [similar]
PREV 1 2 3 4 NEXT