@@ -165,7 +165,7 @@ macro_rules! forward_ref_binop {
165
165
/// ```
166
166
/// use std::ops::Add;
167
167
///
168
- /// #[derive(Copy)]
168
+ /// #[derive(Copy, Clone )]
169
169
/// struct Foo;
170
170
///
171
171
/// impl Add for Foo {
@@ -219,7 +219,7 @@ add_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
219
219
/// ```
220
220
/// use std::ops::Sub;
221
221
///
222
- /// #[derive(Copy)]
222
+ /// #[derive(Copy, Clone )]
223
223
/// struct Foo;
224
224
///
225
225
/// impl Sub for Foo {
@@ -273,7 +273,7 @@ sub_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
273
273
/// ```
274
274
/// use std::ops::Mul;
275
275
///
276
- /// #[derive(Copy)]
276
+ /// #[derive(Copy, Clone )]
277
277
/// struct Foo;
278
278
///
279
279
/// impl Mul for Foo {
@@ -327,7 +327,7 @@ mul_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
327
327
/// ```
328
328
/// use std::ops::Div;
329
329
///
330
- /// #[derive(Copy)]
330
+ /// #[derive(Copy, Clone )]
331
331
/// struct Foo;
332
332
///
333
333
/// impl Div for Foo {
@@ -381,7 +381,7 @@ div_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
381
381
/// ```
382
382
/// use std::ops::Rem;
383
383
///
384
- /// #[derive(Copy)]
384
+ /// #[derive(Copy, Clone )]
385
385
/// struct Foo;
386
386
///
387
387
/// impl Rem for Foo {
@@ -454,7 +454,7 @@ rem_float_impl! { f64, fmod }
454
454
/// ```
455
455
/// use std::ops::Neg;
456
456
///
457
- /// #[derive(Copy)]
457
+ /// #[derive(Copy, Clone )]
458
458
/// struct Foo;
459
459
///
460
460
/// impl Neg for Foo {
@@ -511,7 +511,7 @@ neg_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
511
511
/// ```
512
512
/// use std::ops::Not;
513
513
///
514
- /// #[derive(Copy)]
514
+ /// #[derive(Copy, Clone )]
515
515
/// struct Foo;
516
516
///
517
517
/// impl Not for Foo {
@@ -565,7 +565,7 @@ not_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
565
565
/// ```
566
566
/// use std::ops::BitAnd;
567
567
///
568
- /// #[derive(Copy)]
568
+ /// #[derive(Copy, Clone )]
569
569
/// struct Foo;
570
570
///
571
571
/// impl BitAnd for Foo {
@@ -619,7 +619,7 @@ bitand_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
619
619
/// ```
620
620
/// use std::ops::BitOr;
621
621
///
622
- /// #[derive(Copy)]
622
+ /// #[derive(Copy, Clone )]
623
623
/// struct Foo;
624
624
///
625
625
/// impl BitOr for Foo {
@@ -673,7 +673,7 @@ bitor_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
673
673
/// ```
674
674
/// use std::ops::BitXor;
675
675
///
676
- /// #[derive(Copy)]
676
+ /// #[derive(Copy, Clone )]
677
677
/// struct Foo;
678
678
///
679
679
/// impl BitXor for Foo {
@@ -727,7 +727,7 @@ bitxor_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
727
727
/// ```
728
728
/// use std::ops::Shl;
729
729
///
730
- /// #[derive(Copy)]
730
+ /// #[derive(Copy, Clone )]
731
731
/// struct Foo;
732
732
///
733
733
/// impl Shl<Foo> for Foo {
@@ -799,7 +799,7 @@ shl_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
799
799
/// ```
800
800
/// use std::ops::Shr;
801
801
///
802
- /// #[derive(Copy)]
802
+ /// #[derive(Copy, Clone )]
803
803
/// struct Foo;
804
804
///
805
805
/// impl Shr<Foo> for Foo {
@@ -871,7 +871,7 @@ shr_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
871
871
/// ```
872
872
/// use std::ops::Index;
873
873
///
874
- /// #[derive(Copy)]
874
+ /// #[derive(Copy, Clone )]
875
875
/// struct Foo;
876
876
/// struct Bar;
877
877
///
@@ -912,7 +912,7 @@ pub trait Index<Idx: ?Sized> {
912
912
/// ```
913
913
/// use std::ops::{Index, IndexMut};
914
914
///
915
- /// #[derive(Copy)]
915
+ /// #[derive(Copy, Clone )]
916
916
/// struct Foo;
917
917
/// struct Bar;
918
918
///
0 commit comments