We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd3bddc commit 0624730Copy full SHA for 0624730
library/std/src/io/copy.rs
@@ -235,6 +235,27 @@ mod kernel_copy {
235
fn properties(&self) -> CopyParams;
236
}
237
238
+ impl<T> CopyRead for &mut T where T: CopyRead {
239
+ fn drain_to<W: Write>(&mut self, writer: &mut W, limit: u64) -> Result<u64> {
240
+ (**self).drain_to(writer, limit)
241
+ }
242
+
243
+ fn min_limit(&self) -> u64 {
244
+ (**self).min_limit()
245
246
247
+ fn properties(&self) -> CopyParams {
248
+ (**self).properties()
249
250
251
252
+ impl<T> CopyWrite for &mut T where T: CopyWrite {
253
254
255
256
257
258
259
impl CopyRead for File {
260
fn properties(&self) -> CopyParams {
261
CopyParams(fd_to_meta(self), Some(self.as_raw_fd()))
0 commit comments