検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 193 for self (0.036 sec.)
Disambiguating overlapping traits - Rust By Example 日本語版 7018
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... t the selected username out of this widget fn get(&self) -> String; } trait AgeWidget { // Get the selecte ... d age out of this widget fn get(&self) -> u8; } // A form with both a UsernameWidget and ...
https://man.plustar.jp/rust/example/trait/disambiguating.html - [similar]
フォーマット - Rust By Example 日本語版 6964
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... たとえば {} )の時に呼び出されます。 use std::fmt::{self, Formatter, Display}; struct City { name: &'static ... こにフォーマットされた文字列を書き込みます。 fn fmt(&self, f: &mut Formatter) -> fmt::Result { let lat_c = i ...
https://man.plustar.jp/rust/example/hello/print/fmt.html - [similar]
他言語関数インターフェイス - Rust By Example 日本語版 6910
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... , im: f32, } impl fmt::Debug for Complex { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { if self. ... im < 0. { write!(f, "{}-{}i", self.re, -self.im) } else { write!(f, "{}+{}i", self.re ...
https://man.plustar.jp/rust/example/std_misc/ffi.html - [similar]
Iterator::find - Rust By Example 日本語版 6757
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... レートされる値の型 type Item; // `find` takes `&mut self` meaning the caller may be borrowed // and modifie ... d, but not consumed. // `find`は`&mut self`を取るため、イテレータを呼び出した値を借用し // 変 ...
https://man.plustar.jp/rust/example/fn/closures/closure_examples/iter_find.html - [similar]
クロージャを受け取る関数 - Rust By Example 日本語版 6595
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... え、 <T> で指定するだけでは、まだ曖昧です。(訳注: &self 、 &mut selfself のいずれをとるのかがわからない ... し`Fn`を実装する。 // (訳注: ここでは`Fn`は`fn Fn(&self) -> {println!("{}", &self)}`) // その構造体を`pri ...
https://man.plustar.jp/rust/example/fn/closures/anonymity.html - [similar]
Iterator::any - Rust By Example 日本語版 6595
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... テレートされる値の型 type Item; // `any` takes `&mut self` meaning the caller may be borrowed // and modifie ... d, but not consumed. // `any`は`&mut self`を取るため、イテレータを呼び出した値を借用し // 変 ...
https://man.plustar.jp/rust/example/fn/closures/closure_examples/iter_any.html - [similar]
メソッド - Rust By Example 日本語版 6486
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... 数と同様にライフタイムを明示 fn add_one<'a>(&'a mut self) { self.0 += 1; } fn print<'a>(&'a self) { println ... !("`print`: {}", self.0); } } fn main() { let mut owner = Owner(18); own ...
https://man.plustar.jp/rust/example/scope/lifetime/methods.html - [similar]
Supertraits - Rust By Example 日本語版 6486
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... nother trait. For example: trait Person { fn name(&self) -> String; } // Person is a supertrait of Student ... mpl Person. trait Student: Person { fn university(&self) -> String; } trait Programmer { fn fav_language(& ...
https://man.plustar.jp/rust/example/trait/supertraits.html - [similar]
ジェネリックトレイト - Rust By Example 日本語版 6388
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... single parameter `T` and does nothing with it. // `self`に加えてもう一つジェネリック型を受け取り、 // 何も ... しないメソッドのシグネチャを定義 fn double_drop(self, _: T); } // Implement `DoubleDrop<T>` for any gen ...
https://man.plustar.jp/rust/example/generics/gen_trait.html - [similar]
列挙型 - Rust By Example 日本語版 6279
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... のやり方がもっともよく見られるのは、 impl ブロックで Self という別名を使用する場合です。 enum VeryVerboseEnu ... l VeryVerboseEnumOfThingsToDoWithNumbers { fn run(&self, x: i32, y: i32) -> i32 { match self { Self::Add = ...
https://man.plustar.jp/rust/example/custom_types/enum.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT