File tree 10 files changed +10
-0
lines changed
10 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1050,6 +1050,7 @@ impl<'a> DerefMut for IoSliceMut<'a> {
1050
1050
/// ABI compatible with the `iovec` type on Unix platforms and `WSABUF` on
1051
1051
/// Windows.
1052
1052
#[ stable( feature = "iovec" , since = "1.36.0" ) ]
1053
+ #[ derive( Copy , Clone ) ]
1053
1054
#[ repr( transparent) ]
1054
1055
pub struct IoSlice < ' a > ( sys:: io:: IoSlice < ' a > ) ;
1055
1056
Original file line number Diff line number Diff line change 1
1
use crate :: mem;
2
2
3
+ #[ derive( Copy , Clone ) ]
3
4
pub struct IoSlice < ' a > ( & ' a [ u8 ] ) ;
4
5
5
6
impl < ' a > IoSlice < ' a > {
Original file line number Diff line number Diff line change 1
1
use crate :: mem;
2
2
3
+ #[ derive( Copy , Clone ) ]
3
4
pub struct IoSlice < ' a > ( & ' a [ u8 ] ) ;
4
5
5
6
impl < ' a > IoSlice < ' a > {
Original file line number Diff line number Diff line change 1
1
use crate :: mem;
2
2
3
+ #[ derive( Copy , Clone ) ]
3
4
pub struct IoSlice < ' a > ( & ' a [ u8 ] ) ;
4
5
5
6
impl < ' a > IoSlice < ' a > {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use crate::slice;
3
3
4
4
use libc:: { c_void, iovec} ;
5
5
6
+ #[ derive( Copy , Clone ) ]
6
7
#[ repr( transparent) ]
7
8
pub struct IoSlice < ' a > {
8
9
vec : iovec ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use crate::slice;
3
3
4
4
use libc:: { c_void, iovec} ;
5
5
6
+ #[ derive( Copy , Clone ) ]
6
7
#[ repr( transparent) ]
7
8
pub struct IoSlice < ' a > {
8
9
vec : iovec ,
Original file line number Diff line number Diff line change 1
1
use crate :: marker:: PhantomData ;
2
2
use crate :: slice;
3
3
4
+ #[ derive( Copy , Clone ) ]
4
5
#[ repr( transparent) ]
5
6
pub struct IoSlice < ' a > {
6
7
vec : wasi:: Ciovec ,
Original file line number Diff line number Diff line change 1
1
use crate :: mem;
2
2
3
+ #[ derive( Copy , Clone ) ]
3
4
pub struct IoSlice < ' a > ( & ' a [ u8 ] ) ;
4
5
5
6
impl < ' a > IoSlice < ' a > {
Original file line number Diff line number Diff line change @@ -295,6 +295,7 @@ pub struct WSADATA {
295
295
pub szSystemStatus : [ u8 ; WSASYS_STATUS_LEN + 1 ] ,
296
296
}
297
297
298
+ #[ derive( Copy , Clone ) ]
298
299
#[ repr( C ) ]
299
300
pub struct WSABUF {
300
301
pub len : ULONG ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ use crate::marker::PhantomData;
2
2
use crate :: slice;
3
3
use crate :: sys:: c;
4
4
5
+ #[ derive( Copy , Clone ) ]
5
6
#[ repr( transparent) ]
6
7
pub struct IoSlice < ' a > {
7
8
vec : c:: WSABUF ,
You can’t perform that action at this time.
0 commit comments