1
Fork 0

Rollup merge of #69403 - LeSeulArtichaut:copy-ioslice, r=sfackler

Implement `Copy` for `IoSlice`

Resolves #69395

r? @sfackler
This commit is contained in:
Yuki Okushi 2020-03-14 04:03:20 +09:00 committed by GitHub
commit 5d90154886
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 10 additions and 0 deletions

View file

@ -1050,6 +1050,7 @@ impl<'a> DerefMut for IoSliceMut<'a> {
/// ABI compatible with the `iovec` type on Unix platforms and `WSABUF` on
/// Windows.
#[stable(feature = "iovec", since = "1.36.0")]
#[derive(Copy, Clone)]
#[repr(transparent)]
pub struct IoSlice<'a>(sys::io::IoSlice<'a>);