1
Fork 0

Implement Copy for IoSlice

This commit is contained in:
LeSeulArtichaut 2020-02-23 18:18:45 +01:00
parent 87b0d83745
commit 79b8ad84c8
10 changed files with 10 additions and 0 deletions

View file

@ -1051,6 +1051,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>);