検索

phrase: max: clip:
target: order:
Results of 1 - 3 of about 3 for container (0.009 sec.)
関連型 - Rust By Example 日本語版 10938
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... s // 関連型を使用しない場合 fn difference<A, B, C>(container: &C) -> i32 where C: Contains<A, B> { ... } // Usi ... d types // 使用する場合 fn difference<C: Contains>(container: &C) -> i32 { ... } 前セクションの例を関連型を使用 ... して書きなおしてみましょう。 struct Container(i32, i32); // A trait which checks if 2 items are ... stored inside of container. // Also retrieves first or last value. // 2つの要 ...
https://man.plustar.jp/rust/example/generics/assoc_items/types.html - [similar]
関連型が必要になる状況 - Rust By Example 日本語版 10231
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ジェネリック型 A と B の使用を許しています。その後、 Container 型に対して Contains を実装していますが、その際後に ... 介する関連型と呼ばれる機能によって可能です。 struct Container(i32, i32); // A trait which checks if 2 items are ... stored inside of container. // Also retrieves first or last value. // 2つの要 ... B`いずれも要求しない } impl Contains<i32, i32> for Container { // True if the numbers stored are equal. // コン ...
https://man.plustar.jp/rust/example/generics/assoc_items/the_problem.html - [similar]
Path - Rust By Example 日本語版 6696
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ath.display(); // `join` merges a path with a byte container using the OS specific // separator, and returns th ...
https://man.plustar.jp/rust/example/std_misc/path.html - [similar]
PREV 1 NEXT