検索
Results of 1 - 10 of about 14 for iter (0.004 sec.)
- Iterator::find - Rust By Example 日本語版 13513
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ージャを返す関数 9.2.6. stdにおける使用例 ❱ 9.2.6.1. Iterator::any 9.2.6.2. Iterator::find 9.3. 高階関数 9.4...avy Ayu Rust By Example 日本語版 Searching through iterators Iterator::find はイテレータを辿る関数で、条件...ます。型シグネチャは以下のようになります。 pub trait Iterator { // The type being iterated over. // イテレー...ec1 = vec![1, 2, 3]; let vec2 = vec![4, 5, 6]; // `iter()` for vecs yields `&i32`. // ベクトル型に対する`i... - https://man.plustar.jp/rust/example/fn/closures/closure_examples/iter_find.html - [similar]
- Iterator::any - Rust By Example 日本語版 10625
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ージャを返す関数 9.2.6. stdにおける使用例 ❱ 9.2.6.1. Iterator::any 9.2.6.2. Iterator::find 9.3. 高階関数 9.4...fault) Rust Coal Navy Ayu Rust By Example 日本語版 Iterator::any iterator::any は、イテレータ内に一つでも条...すイテレータです。以下がそのシグネチャです pub trait Iterator { // The type being iterated over. // イテレー...ec1 = vec![1, 2, 3]; let vec2 = vec![4, 5, 6]; // `iter()` for vecs yields `&i32`. Destructure to `i32`. /... - https://man.plustar.jp/rust/example/fn/closures/closure_examples/iter_any.html - [similar]
- Rust By Example 日本語版 10415
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ージャを返す関数 9.2.6. stdにおける使用例 ❱ 9.2.6.1. Iterator::any 9.2.6.2. Iterator::find 9.3. 高階関数 9.4...with line comments. Try deleting the comment delimiters // to change the result: // ではブロックコメントが...te! に対して使用します。 // Try `write!` to see if it errors. If it errors, return // the error. Otherwise...e to `vec`. let vec = &self.0; write!(f, "[")?; // Iterate over `v` in `vec` while enumerating the iterati... - https://man.plustar.jp/rust/example/print.html - [similar]
- for と range - Rust By Example 日本語版 9522
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ージャを返す関数 9.2.6. stdにおける使用例 ❱ 9.2.6.1. Iterator::any 9.2.6.2. Iterator::find 9.3. 高階関数 9.4...for と range for in 文を用いることで、イテレータ( Iterator )のそれぞれの要素に対して処理をすることが可能で.../ `n` will take the values: 1, 2, ..., 100 in each iteration // `n`は1, 2, ...., 100のそれぞれの値を取りま.../ `n` will take the values: 1, 2, ..., 100 in each iteration // `n`は1, 2, ...., 100のそれぞれの値を取りま... - https://man.plustar.jp/rust/example/flow_control/for.html - [similar]
- Resultをイテレートする - Rust By Example 日本語版 8962
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ージャを返す関数 9.2.6. stdにおける使用例 ❱ 9.2.6.1. Iterator::any 9.2.6.2. Iterator::find 9.3. 高階関数 9.4...u Rust By Example 日本語版 Result をイテレートする Iter::map オペレーションは失敗することもあります。例えば..., "93", "18"]; let numbers: Vec<_> = strings .into_iter() .map(|s| s.parse::<i32>()) .collect(); println!(..., "93", "18"]; let numbers: Vec<_> = strings .into_iter() .filter_map(|s| s.parse::<i32>().ok()) .collect(... - https://man.plustar.jp/rust/example/error/iter_result.html - [similar]
- impl Trait - Rust By Example 日本語版 8805
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ージャを返す関数 9.2.6. stdにおける使用例 ❱ 9.2.6.1. Iterator::any 9.2.6.2. Iterator::find 9.3. 高階関数 9.4...implify your type signatures quite a lot! use std::iter; use std::vec::IntoIter; // This function combines...two `Vec<i32>` and returns an iterator over it. // Look how complicated its return ty...plicit_return_type( v: Vec<i32>, u: Vec<i32>, ) -> iter::Cycle<iter::Chain<IntoIter<i32>, IntoIter<i32>>>... - https://man.plustar.jp/rust/example/trait/impl_trait.html - [similar]
- DRY (Don't Repeat Yourself) - Rust By Example 日本語版 8682
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ージャを返す関数 9.2.6. stdにおける使用例 ❱ 9.2.6.1. Iterator::any 9.2.6.2. Iterator::find 9.3. 高階関数 9.4...t_equal_len!(xs, ys, $func, $op); for (x, y) in xs.iter_mut().zip(ys.iter()) { *x = $bound::$method(*x, *y...op!(sub_assign, Sub, -=, sub); mod test { use std::iter; macro_rules! test { ($func:ident, $x:expr, $y:exp...c() { for size in 0usize..10 { let mut x: Vec<_> = iter::repeat($x).take(size).collect(); let y: Vec<_> =... - https://man.plustar.jp/rust/example/macros/dry.html - [similar]
- ベクタ型 - Rust By Example 日本語版 7859
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ージャを返す関数 9.2.6. stdにおける使用例 ❱ 9.2.6.1. Iterator::any 9.2.6.2. Iterator::find 9.3. 高階関数 9.4...量を持つように割り当てなおされます。 fn main() { // Iterators can be collected into vectors // イテレータは...素を収集してベクタにすることができる。 let collected_iterator: Vec<i32> = (0..10).collect(); println!("Colle...cted (0..10) into: {:?}", collected_iterator); // The `vec!` macro can be used to initializ... - https://man.plustar.jp/rust/example/std/vec.html - [similar]
- イテレータ - Rust By Example 日本語版 7807
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ージャを返す関数 9.2.6. stdにおける使用例 ❱ 9.2.6.1. Iterator::any 9.2.6.2. Iterator::find 9.3. 高階関数 9.4...Coal Navy Ayu Rust By Example 日本語版 イテレータ Iterator トレイトは、例えば配列のような、要素の集合に対...イテレータを作成することが良くあります。これは .into_iter() メソッドを呼び出しています。 struct Fibonacci {...curr: u32, next: u32, } // Implement `Iterator` for `Fibonacci`. // The `Iterator` trait only... - https://man.plustar.jp/rust/example/trait/iter.html - [similar]
- ハッシュマップ - Rust By Example 日本語版 7579
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ージャを返す関数 9.2.6. stdにおける使用例 ❱ 9.2.6.1. Iterator::any 9.2.6.2. Iterator::find 9.3. 高階関数 9.4...ber."), } contacts.remove(&"Ashley"); // `HashMap::iter()` returns an iterator that yields // (&'a key, &'...a value) pairs in arbitrary order. // `HashMap::iter()`は(&'a key, &'a value) // のペアを順不同で産出す...イテレータを返す for (contact, &number) in contacts.iter() { println!("Calling {}: {}", contact, call(numbe... - https://man.plustar.jp/rust/example/std/hash.html - [similar]