We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a519bfc commit 4ff2d78Copy full SHA for 4ff2d78
1 file changed
src/vec/Drain.md
@@ -78,13 +78,17 @@ where
78
79
<!--
80
実装されている関数の説明。
81
-解説とコード例を必ず載せること。
+解説とバージョン、構文、コード例を必ず載せること。
82
-->
83
84
### `as_slice`
85
86
**Rust 1.46.0 ~**
87
88
+```rust
89
+pub fn as_slice(&self) -> &[T]
90
+```
91
+
92
まだ削除されていない要素をスライスで返す関数。
93
94
```rust
@@ -115,6 +119,10 @@ nightly-onlyの関数の場合は、解説内に
115
119
> [!NOTE]
116
120
> nightlyでのみ使用可能
117
121
122
123
+pub fn allocator(&self) -> &A
124
125
118
126
内部で使用しているアロケーターを返す関数。
127
128
@@ -137,6 +145,10 @@ assert_eq!(
137
145
138
146
139
147
148
149
+pub fn keep_rest(self)
150
151
140
152
一度も消費していない要素をもとのベクターに返還する関数。
141
153
142
154
0 commit comments