From f182472b50f0b7803a82026c5cd776da6a516de4 Mon Sep 17 00:00:00 2001 From: Kai Tomotake Date: Mon, 11 May 2026 21:07:01 +0900 Subject: [PATCH] add impl refs --- content/docs/vec/Drain.mdx | 59 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/content/docs/vec/Drain.mdx b/content/docs/vec/Drain.mdx index ab45c0d..65e358e 100644 --- a/content/docs/vec/Drain.mdx +++ b/content/docs/vec/Drain.mdx @@ -261,6 +261,8 @@ where { /* trait methods */ } ``` +## 自動トレイト実装 + ### `std::marker::Freeze` ```rust @@ -297,4 +299,61 @@ where { /* trait methods */ } ``` +## ブランケット実装 + +```rust +impl Any for T +where + T: 'static + ?Sized +{ /* trait methods */ } +``` + +```rust +impl Borrow for T +where + T: ?Sized +{ /* trait methods */ } +``` + +```rust +impl BorrowMut for T +where + T: ?Sized +{ /* trait methods */ } +``` + +```rust +impl From for T { + /* trait methods */ +} +``` + +```rust +impl Into for T +where + U: From +{ /* trait methods */ } +``` + +```rust +impl IntoIterator for I +where + I: Iterator, +{ /* trait methods */ } +``` + +```rust +impl TryFrom for T +where + U: Into +{ /* trait methods */ } +``` + +```rust +impl TryInto for T +where + U: TryFrom +{ /* trait methods */ } +``` + {/* 関連項目については、必要だと思ったら記載すること */}