検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 40 for 実装 (0.044 sec.)
ジェネリックトレイト - Rust By Example 日本語版 7161
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ここでは Drop トレイトをジェネリックメソッドとして再実装し、自身と引数として受け取った値の両方を drop するよ ... `をもう一つの引数として受け取る`DoubleDrop<T>` // を実装する。`U`,`T`はいずれもジェネリック型 impl<T, U> Dou ...
https://man.plustar.jp/rust/example/generics/gen_trait.html - [similar]
Resultのmap - Rust By Example 日本語版 7036
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... を定めるために、 i32 に対し FromStr トレートを使って実装された parse() を見てみましょう。結果、 Err 型は Par ... d_then 、その他多くのコンビネータも Result のために実装されています。 Result に全てのリストが記載されていま ...
https://man.plustar.jp/rust/example/error/result/result_map.html - [similar]
関連型が必要になる状況 - Rust By Example 日本語版 7036
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ンテナ型に、その要素に対してジェネリックなトレイトを実装した場合、そのトレイトを使用する者は全てのジェネリッ ... しています。その後、 Container 型に対して Contains を実装していますが、その際後に fn difference() が使用できる ...
https://man.plustar.jp/rust/example/generics/assoc_items/the_problem.html - [similar]
テストケース: リスト - Rust By Example 日本語版 7036
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体のそれぞれの要素を別々に扱う fmt::Display を実装するのはトリッキーです。というのも、それぞれの write ... を使用できれば、 Vec 用の fmt::Display はより簡単に実装できます。 use std::fmt; // Import the `fmt` module. ...
https://man.plustar.jp/rust/example/hello/print/print_display/testcase_list.html - [similar]
DRY (Don't Repeat Yourself) - Rust By Example 日本語版 7036
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... のに役立ちます。ここでは += 、 *= 、 -= 、 Vec<T> を実装、テストするにあたって、マクロがどのように役立つかを ... // `add_assign`、`mul_assign`、`sub_assign`、関数を実装 op!(add_assign, Add, +=, add); op!(mul_assign, Mul ...
https://man.plustar.jp/rust/example/macros/dry.html - [similar]
RAII - Rust By Example 日本語版 7036
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... に呼び出されます。 Drop トレイトは型定義のたびに必ず実装する必要があるわけではなく、デストラクタに独自のロジ ... ックが必要な場合にのみ実装します。 下のコードを実行して、 Drop トレイトの動作を ...
https://man.plustar.jp/rust/example/scope/raii.html - [similar]
テストケース: 単位を扱う - Rust By Example 日本語版 6911
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 同士を扱う際のチェックのために、 Add を幽霊型を用いた実装にすると便利な場合があります。その場合 Add トレイトは ... lementation for `f64`. // ここでの`+`は`f64`の`Add`実装を呼び出す。 Length(self.0 + rhs.0, PhantomData) } } ...
https://man.plustar.jp/rust/example/generics/phantom/testcase_units.html - [similar]
フォーマットしてプリント - Rust By Example 日本語版 6911
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 合は、さらに手順が必要です。 fmt::Display トレイトを実装すると、自動的に ToString トレイトが実装されます。こ ...
https://man.plustar.jp/rust/example/hello/print.html - [similar]
早期リターン - Rust By Example 日本語版 6537
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... やすく書きやすい場合があります。早期リターンを使って実装された、前の例の新たなバージョンを考えてみましょう。 ...
https://man.plustar.jp/rust/example/error/result/early_returns.html - [similar]
Where句 - Rust By Example 日本語版 6537
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... use: // `where`句を用いない場合、以下と等価な機能を実装するには、 // `<T: Debug>`という形で表現するか、別の ...
https://man.plustar.jp/rust/example/generics/where.html - [similar]
PREV 1 2 3 4 NEXT