検索

phrase: max: clip:
target: order:
Results of 1 - 1 of about 1 for curr (0.017 sec.)
イテレータ - Rust By Example 日本語版 9414
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... () メソッドを呼び出しています。 struct Fibonacci { curr: u32, next: u32, } // Implement `Iterator` for `Fi ... tem = u32; // Here, we define the sequence using `.curr` and `.next`. // The return type is `Option<T>`: / ... ion signatures. // ここではイテレーションの流れを`.curr`と`.next`を使用して定義している。 // 返り値の型は` ... self) -> Option<Self::Item> { let new_next = self.curr + self.next; self.curr = self.next; self.next = ne ...
https://man.plustar.jp/rust/example/trait/iter.html - [similar]
PREV 1 NEXT