検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 193 for self (0.035 sec.)
メソッド - Rust By Example 日本語版 12266
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 (ドメイン特化言語 ... Point, } impl Rectangle { // This is a method // `&self` is sugar for `self: &Self`, where `Self` is the t ... ype of the // caller object. In this case `Self` = `Rectangle` // こちらはメソッド。`&self`は`self ...
https://man.plustar.jp/rust/example/fn/methods.html - [similar]
Rust By Example 日本語版 11582
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 (ドメイン特化言語 ... 役割を果たします。 トレイト - トレイトとは、未知の型 Self に対して定義された一連のメソッドです。 マクロ エラ ... thing * in this main() function. /*/*/* Try it yourself! */*/*/ */ /* * こちらはもう一つのタイプのコメント ...
https://man.plustar.jp/rust/example/print.html - [similar]
トレイト - Rust By Example 日本語版 11582
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 (ドメイン特化言語 ... 版 トレイト トレイト( trait )とは任意の型となりうる Self に対して定義されたメソッドの集合のことです。同じト ... trait Animal { // Associated function signature; `Self` refers to the implementor type. // 関連関数のシグ ...
https://man.plustar.jp/rust/example/trait.html - [similar]
関連型 - Rust By Example 日本語版 10376
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 contains(&self, &Self::A, &Self::B) -> bool; } } Contains トレイト ... るジェネリック型を定義 type A; type B; fn contains(&self, _: &Self::A, _: &Self::B) -> bool; fn first(&self ...
https://man.plustar.jp/rust/example/generics/assoc_items/types.html - [similar]
テストケース: 連結リスト - Rust By Example 日本語版 9169
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 prepend(self, elem: u32) -> List { // `Cons` also has type List ... 第2要素もどちらもlist型である。 Cons(elem, Box::new(self)) } // Return the length of the list // list の長さ ...
https://man.plustar.jp/rust/example/custom_types/enum/testcase_linked_list.html - [similar]
super と self - Rust By Example 日本語版 8224
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 (ドメイン特化言語 ... st Coal Navy Ayu Rust By Example 日本語版 super と self super 及び self キーワードは、要素にアクセスする際 ... "called `my::indirect_call()`, that\n> "); // The `self` keyword refers to the current module scope - in t ...
https://man.plustar.jp/rust/example/mod/super.html - [similar]
テストケース: 単位を扱う - Rust By Example 日本語版 7855
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 (ドメイン特化言語 ... の右辺のことです // This construction would impose: `Self + RHS = Output` // where RHS defaults to Self if n ... the implementation. // このように定義しておくと、`Self + RHS = Output`であることが保証され、 // かつ、imp ...
https://man.plustar.jp/rust/example/generics/phantom/testcase_units.html - [similar]
関連型が必要になる状況 - Rust By Example 日本語版 7746
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 (ドメイン特化言語 ... することもできる trait Contains<A, B> { fn contains(&self, _: &A, _: &B) -> bool; // Explicitly requires `A` ... `B`. // `A`と`B`の両方を明示的に要求する fn first(&self) -> i32; // Doesn't explicitly require `A` or `B`. ...
https://man.plustar.jp/rust/example/generics/assoc_items/the_problem.html - [similar]
イテレータ - Rust By Example 日本語版 7648
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 (ドメイン特化言語 ... for Fibonacci { // We can refer to this type using Self::Item type Item = u32; // Here, we define the sequ ... value is wrapped in `Some` and returned. // We use Self::Item in the return type, so we can change // the ...
https://man.plustar.jp/rust/example/trait/iter.html - [similar]
ディスプレイ - Rust By Example 日本語版 7170
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 fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { // Write ... く似た文法を使用していることに注目。 write!(f, "{}", self.0) } } } fmt::Display は fmt::Debug より綺麗かもし ...
https://man.plustar.jp/rust/example/hello/print/print_display.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT