Skip to content

「6. 型変換」などを翻訳 #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Nov 12, 2021
Merged

Conversation

blueblade
Copy link
Contributor

@blueblade blueblade commented May 1, 2021

翻訳および既訳の修正を行いました。

原文のままの章を和訳したのは、以下の章です。

  • 「6. 型変換」
  • 「6.1 FromおよびInto」
  • 「6.2 TryFromおよびTryInto」
  • 「6.3 Stringとの型変換」
  • 「8.2.2 loopが返す値」

和訳が不完全 (一部が未訳) だったのをすべて和訳したのは、以下の章です。
(★は既訳部分の修正も行いました)

  • 左側のインデックス (SUMMARY.md) ★
  • 「1.2 フォーマットしてプリント」 ★
  • 「1.2.1 デバッグ」
  • 「1.2.2.1 テストケース:リスト」
  • 「2. 基本データ型」 ★
  • 「2.2 タプル」
  • 「2.3 配列とスライス」 ★
  • 「3.1 構造体」 ★
  • 「3.2 列挙型」 ★
  • 「4.4 値の凍結」 ★
  • 「8.5 forループ」
  • 「8.5.1 デストラクト」
  • 「9.2 クロージャ」

上記のうち、「4.4 値の凍結」 は他の pull request と重複しております。

@blueblade blueblade changed the title 6章・6.1章などを翻訳 「6. 型変換」などを翻訳 May 3, 2021
@dalance dalance self-assigned this May 5, 2021
The [`From`] trait allows for a type to define how to create itself from another
type, hence providing a very simple mechanism for converting between several
types. There are numerous implementations of this trait within the standard
library for conversion of primitive and common types.
-->
[`From`]トレイトは、ある型に対し、別の型からその型を作る方法を定義できるようにするものです。そのため、複数の型の間で型変換を行うための非常にシンプルな仕組みを提供しています。標準ライブラリでは、基本データ型やよく使われる型に対して、このトレイトが多数実装されています。
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

自己レビューですが、「そのため、複数の型の間で〜」は「これにより、複数の型の間で〜」の方が、自然な言い回しだったかもしれません。

@dalance
Copy link
Contributor

dalance commented Nov 12, 2021

遅くなってしまいすいません。
問題なさそうですのでマージします。

@dalance dalance merged commit 62928c0 into rust-lang-ja:master Nov 12, 2021
@TonalidadeHidrica
Copy link

非常に大きな PR がマージされましたね~、やったー!
@blueblade お疲れさまです!

@blueblade blueblade deleted the translate branch October 8, 2022 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy