検索

phrase: max: clip:
target: order:
Results of 1 - 7 of about 7 for next (0.019 sec.)
一連の要素をイテレータで処理する - Rust 日本語版 13395
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... それをする方法を調査しましょう。 Iterator トレイトと next メソッド 全てのイテレータは、標準ライブラリで定義さ ... d)] fn main() { pub trait Iterator { type Item; fn next(&mut self) -> Option<Self::Item>; // デフォルト実装 ... em 型も定義する必要があり、 そして、この Item 型が next メソッドの戻り値の型に使われていると述べていること ... ッドを定義することを実装者に要求することだけします: next メソッドで、 これは1度に Some に包まれたイテレータ ...
https://man.plustar.jp/rust/book/ch13-02-iterators.html - [similar]
入出力プロジェクトを改善する - Rust 日本語版 9087
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... 実装していることにも言及しているので、 それに対して next メソッドを呼び出せることがわかります!リスト13-27は ... 、 リスト12-23のコードを next メソッドを使用するように更新したものです: ファイル ... :env::Args) -> Result<Config, &'static str> { args.next(); let query = match args.next() { Some(arg) => ar ... get a query string"), }; let filename = match args.next() { Some(arg) => arg, // ファイル名を取得しませんで ...
https://man.plustar.jp/rust/book/ch13-03-improving-our-io-project.html - [similar]
高度なトレイト - Rust 日本語版 8833
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... の型の代役を務めます。第13章の「 Iterator トレイトと next メソッド」節で、 Iterator トレイトの定義は、リスト ... d)] fn main() { pub trait Iterator { type Item; fn next(&mut self) -> Option<Self::Item>; } } リスト19-20: ... ator トレイトの定義 型 Item はプレースホルダー型で next メソッドの定義は、型 Option<Self::Item> の値を返す ... レイトを実装するものは、 Item の具体的な型を指定し、 next メソッドは、 その具体的な型の値を含む Option を返し ...
https://man.plustar.jp/rust/book/ch19-03-advanced-traits.html - [similar]
循環参照は、メモリをリークすることもある - Rust 日本語版 8469
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... ng_count(&a)); // aの次の要素は = {:?} println!("a next item = {:?}", a.tail()); let b = Rc::new(Cons(10, ... rong_count(&b)); // bの次の要素 = {:?} println!("b next item = {:?}", b.tail()); if let Some(link) = a.tai ... g a = {}", Rc::strong_count(&a)); // Uncomment the next line to see that we have a cycle; // it will overf ... ださい; スタックオーバーフローします // println!("a next item = {:?}", a.tail()); // aの次の要素 = {:?} } リ ...
https://man.plustar.jp/rust/book/ch15-06-reference-cycles.html - [similar]
クロージャ:環境をキャプチャできる匿名関数 - Rust 日本語版 8051
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... ty) ); println!( // 次に、{}回腹筋をしてください! "Next, do {} situps!", simulated_expensive_calculation(i ... y, do {} pushups!", expensive_result ); println!( "Next, do {} situps!", expensive_result ); } else { if r ... hups!", expensive_closure(intensity) ); println!( "Next, do {} situps!", expensive_closure(intensity) ); } ... ", expensive_result.value(intensity) ); println!( "Next, do {} situps!", expensive_result.value(intensity) ...
https://man.plustar.jp/rust/book/ch13-01-closures.html - [similar]
ライフタイムで参照を検証する - Rust 日本語版 7961
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... ませんでした" let first_sentence = novel.split('.').next().expect("Could not find a '.'"); let i = Importan ... rs ago..."); let first_sentence = novel.split('.').next().expect("Could not find a '.'"); let i = Importan ... rs ago..."); let first_sentence = novel.split('.').next().expect("Could not find a '.'"); let i = Importan ...
https://man.plustar.jp/rust/book/ch10-03-lifetime-syntax.html - [similar]
モジュールツリーの要素を示すためのパス - Rust 日本語版 7742
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... n!("I'd like {} toast please", meal.toast); // The next line won't compile if we uncomment it; we're not a ...
https://man.plustar.jp/rust/book/ch07-03-paths-for-referring-to-an-item-in-the-m... - [similar]
PREV 1 NEXT