Skip to content

Commit cecbf39

Browse files
committed
ci: generate pages at d97760a [ci skip]
1 parent d97760a commit cecbf39

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

docs/error/multiple_error_types/boxing_errors.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ <h1 id="エラーをboxする"><a class="header" href="#エラーをboxする">
160160
any type that implements the `Error` trait into the trait object `Box<Error>`,
161161
via [`From`][from].
162162
-->
163-
<p>標準ライブラリは<code>Box</code>に、<a href="https://doc.rust-lang.org/std/convert/trait.From.html"><code>From</code></a>を介してあらゆる<code>Error</code>トレートを実装した型から<code>Box&lt;Error&gt;</code>トレートオブジェクトへの変換を実装させることで、エラーをboxしやすくしてくれます。</p>
163+
<p>標準ライブラリは<code>Box</code>に、<a href="https://doc.rust-lang.org/std/convert/trait.From.html"><code>From</code></a>を介してあらゆる<code>Error</code>トレイトを実装した型から<code>Box&lt;Error&gt;</code>トレイトオブジェクトへの変換を実装させることで、エラーをboxしやすくしてくれます。</p>
164164
<pre><pre class="playground"><code class="language-rust editable edition2021">use std::error;
165165
use std::fmt;
166166

docs/error/multiple_error_types/wrap_error.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ <h1 id="エラーをラップする"><a class="header" href="#エラーをラッ
194194
// cast to the trait object `&amp;error::Error`. This works because the
195195
// underlying type already implements the `Error` trait.
196196
// 元の実装のエラー型が原因。
197-
// `&amp;error::Error`トレートオブジェクトに暗にキャストされる
198-
// 元となる型が`Error`トレートをすでに実装しているため問題なく動く
197+
// `&amp;error::Error`トレイトオブジェクトに暗にキャストされる
198+
// 元となる型が`Error`トレイトをすでに実装しているため問題なく動く
199199
DoubleError::Parse(ref e) =&gt; Some(e),
200200
}
201201
}

docs/error/result.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ <h2 id="main内で使うresult"><a class="header" href="#main内で使うresult"
229229
representation of the error (using the [`Debug`] trait). The following example
230230
shows such a scenario and touches on aspects covered in [the following section].
231231
-->
232-
<p>一方<code>main</code><code>Result</code>をリターン型とすることも可能です。エラーが<code>main</code>関数内で発生した時、エラーコードを返し、エラーに関するデバッグ表記を(<a href="https://doc.rust-lang.org/std/fmt/trait.Debug.html"><code>Debug</code></a>トレートを使って)出力します。以下の例ではそのようなシナリオを示し、<a href="result/early_returns.html">この先の節</a>でカバーする内容に触れていきます。</p>
232+
<p>一方<code>main</code><code>Result</code>をリターン型とすることも可能です。エラーが<code>main</code>関数内で発生した時、エラーコードを返し、エラーに関するデバッグ表記を(<a href="https://doc.rust-lang.org/std/fmt/trait.Debug.html"><code>Debug</code></a>トレイトを使って)出力します。以下の例ではそのようなシナリオを示し、<a href="result/early_returns.html">この先の節</a>でカバーする内容に触れていきます。</p>
233233
<pre><pre class="playground"><code class="language-rust editable edition2021">use std::num::ParseIntError;
234234

235235
fn main() -&gt; Result&lt;(), ParseIntError&gt; {

docs/error/result/result_map.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ <h1 id="resultのmap"><a class="header" href="#resultのmap"><code>Result</code>
161161
[`FromStr`][from_str] trait for [`i32`][i32]. As a result, the `Err` type is
162162
specified as [`ParseIntError`][parse_int_error].
163163
-->
164-
<p>まずは、どのようなエラー型を扱っているのかを知る必要があります。<code>Err</code>型を定めるために、<a href="https://doc.rust-lang.org/std/primitive.i32.html"><code>i32</code></a>に対し<a href="https://doc.rust-lang.org/std/str/trait.FromStr.html"><code>FromStr</code></a>トレートを使って実装された<a href="https://doc.rust-lang.org/std/primitive.str.html#method.parse"><code>parse()</code></a>を見てみましょう。結果、<code>Err</code>型は<a href="https://doc.rust-lang.org/std/num/struct.ParseIntError.html"><code>ParseIntError</code></a>というものであることが分かります。</p>
164+
<p>まずは、どのようなエラー型を扱っているのかを知る必要があります。<code>Err</code>型を定めるために、<a href="https://doc.rust-lang.org/std/primitive.i32.html"><code>i32</code></a>に対し<a href="https://doc.rust-lang.org/std/str/trait.FromStr.html"><code>FromStr</code></a>トレイトを使って実装された<a href="https://doc.rust-lang.org/std/primitive.str.html#method.parse"><code>parse()</code></a>を見てみましょう。結果、<code>Err</code>型は<a href="https://doc.rust-lang.org/std/num/struct.ParseIntError.html"><code>ParseIntError</code></a>というものであることが分かります。</p>
165165
<!--
166166
In the example below, the straightforward `match` statement leads to code
167167
that is overall more cumbersome.

docs/print.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10006,7 +10006,7 @@ <h2 id="main内で使うresult"><a class="header" href="#main内で使うresult"
1000610006
representation of the error (using the [`Debug`] trait). The following example
1000710007
shows such a scenario and touches on aspects covered in [the following section].
1000810008
-->
10009-
<p>一方<code>main</code>で<code>Result</code>をリターン型とすることも可能です。エラーが<code>main</code>関数内で発生した時、エラーコードを返し、エラーに関するデバッグ表記を(<a href="https://doc.rust-lang.org/std/fmt/trait.Debug.html"><code>Debug</code></a>トレートを使って)出力します。以下の例ではそのようなシナリオを示し、<a href="error/result/early_returns.html">この先の節</a>でカバーする内容に触れていきます。</p>
10009+
<p>一方<code>main</code>で<code>Result</code>をリターン型とすることも可能です。エラーが<code>main</code>関数内で発生した時、エラーコードを返し、エラーに関するデバッグ表記を(<a href="https://doc.rust-lang.org/std/fmt/trait.Debug.html"><code>Debug</code></a>トレイトを使って)出力します。以下の例ではそのようなシナリオを示し、<a href="error/result/early_returns.html">この先の節</a>でカバーする内容に触れていきます。</p>
1001010010
<pre><pre class="playground"><code class="language-rust editable edition2021">use std::num::ParseIntError;
1001110011

1001210012
fn main() -&gt; Result&lt;(), ParseIntError&gt; {
@@ -10037,7 +10037,7 @@ <h1 id="resultのmap"><a class="header" href="#resultのmap"><code>Result</code>
1003710037
[`FromStr`][from_str] trait for [`i32`][i32]. As a result, the `Err` type is
1003810038
specified as [`ParseIntError`][parse_int_error].
1003910039
-->
10040-
<p>まずは、どのようなエラー型を扱っているのかを知る必要があります。<code>Err</code>型を定めるために、<a href="https://doc.rust-lang.org/std/primitive.i32.html"><code>i32</code></a>に対し<a href="https://doc.rust-lang.org/std/str/trait.FromStr.html"><code>FromStr</code></a>トレートを使って実装された<a href="https://doc.rust-lang.org/std/primitive.str.html#method.parse"><code>parse()</code></a>を見てみましょう。結果、<code>Err</code>型は<a href="https://doc.rust-lang.org/std/num/struct.ParseIntError.html"><code>ParseIntError</code></a>というものであることが分かります。</p>
10040+
<p>まずは、どのようなエラー型を扱っているのかを知る必要があります。<code>Err</code>型を定めるために、<a href="https://doc.rust-lang.org/std/primitive.i32.html"><code>i32</code></a>に対し<a href="https://doc.rust-lang.org/std/str/trait.FromStr.html"><code>FromStr</code></a>トレイトを使って実装された<a href="https://doc.rust-lang.org/std/primitive.str.html#method.parse"><code>parse()</code></a>を見てみましょう。結果、<code>Err</code>型は<a href="https://doc.rust-lang.org/std/num/struct.ParseIntError.html"><code>ParseIntError</code></a>というものであることが分かります。</p>
1004110041
<!--
1004210042
In the example below, the straightforward `match` statement leads to code
1004310043
that is overall more cumbersome.
@@ -10543,7 +10543,7 @@ <h1 id="エラーをboxする"><a class="header" href="#エラーをboxする">
1054310543
any type that implements the `Error` trait into the trait object `Box<Error>`,
1054410544
via [`From`][from].
1054510545
-->
10546-
<p>標準ライブラリは<code>Box</code>に、<a href="https://doc.rust-lang.org/std/convert/trait.From.html"><code>From</code></a>を介してあらゆる<code>Error</code>トレートを実装した型から<code>Box&lt;Error&gt;</code>トレートオブジェクトへの変換を実装させることで、エラーをboxしやすくしてくれます。</p>
10546+
<p>標準ライブラリは<code>Box</code>に、<a href="https://doc.rust-lang.org/std/convert/trait.From.html"><code>From</code></a>を介してあらゆる<code>Error</code>トレイトを実装した型から<code>Box&lt;Error&gt;</code>トレイトオブジェクトへの変換を実装させることで、エラーをboxしやすくしてくれます。</p>
1054710547
<pre><pre class="playground"><code class="language-rust editable edition2021">use std::error;
1054810548
use std::fmt;
1054910549

@@ -10731,8 +10731,8 @@ <h1 id="エラーをラップする"><a class="header" href="#エラーをラッ
1073110731
// cast to the trait object `&amp;error::Error`. This works because the
1073210732
// underlying type already implements the `Error` trait.
1073310733
// 元の実装のエラー型が原因。
10734-
// `&amp;error::Error`トレートオブジェクトに暗にキャストされる
10735-
// 元となる型が`Error`トレートをすでに実装しているため問題なく動く
10734+
// `&amp;error::Error`トレイトオブジェクトに暗にキャストされる
10735+
// 元となる型が`Error`トレイトをすでに実装しているため問題なく動く
1073610736
DoubleError::Parse(ref e) =&gt; Some(e),
1073710737
}
1073810738
}

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)