@@ -184,6 +184,7 @@ macro_rules! forward_ref_binop {
184
184
#[ lang="add" ]
185
185
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
186
186
pub trait Add < RHS =Self > {
187
+ /// The resulting type after applying the `+` operator
187
188
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
188
189
type Output ;
189
190
@@ -237,6 +238,7 @@ add_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
237
238
#[ lang="sub" ]
238
239
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
239
240
pub trait Sub < RHS =Self > {
241
+ /// The resulting type after applying the `-` operator
240
242
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
241
243
type Output ;
242
244
@@ -290,6 +292,7 @@ sub_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
290
292
#[ lang="mul" ]
291
293
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
292
294
pub trait Mul < RHS =Self > {
295
+ /// The resulting type after applying the `*` operator
293
296
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
294
297
type Output ;
295
298
@@ -343,6 +346,7 @@ mul_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
343
346
#[ lang="div" ]
344
347
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
345
348
pub trait Div < RHS =Self > {
349
+ /// The resulting type after applying the `/` operator
346
350
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
347
351
type Output ;
348
352
@@ -396,6 +400,7 @@ div_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
396
400
#[ lang="rem" ]
397
401
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
398
402
pub trait Rem < RHS =Self > {
403
+ /// The resulting type after applying the `%` operator
399
404
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
400
405
type Output = Self ;
401
406
@@ -468,6 +473,7 @@ rem_float_impl! { f64, fmod }
468
473
#[ lang="neg" ]
469
474
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
470
475
pub trait Neg {
476
+ /// The resulting type after applying the `-` operator
471
477
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
472
478
type Output ;
473
479
@@ -544,6 +550,7 @@ neg_uint_impl! { u64, i64 }
544
550
#[ lang="not" ]
545
551
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
546
552
pub trait Not {
553
+ /// The resulting type after applying the `!` operator
547
554
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
548
555
type Output ;
549
556
@@ -597,6 +604,7 @@ not_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
597
604
#[ lang="bitand" ]
598
605
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
599
606
pub trait BitAnd < RHS =Self > {
607
+ /// The resulting type after applying the `&` operator
600
608
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
601
609
type Output ;
602
610
@@ -650,6 +658,7 @@ bitand_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
650
658
#[ lang="bitor" ]
651
659
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
652
660
pub trait BitOr < RHS =Self > {
661
+ /// The resulting type after applying the `|` operator
653
662
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
654
663
type Output ;
655
664
@@ -703,6 +712,7 @@ bitor_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
703
712
#[ lang="bitxor" ]
704
713
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
705
714
pub trait BitXor < RHS =Self > {
715
+ /// The resulting type after applying the `^` operator
706
716
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
707
717
type Output ;
708
718
@@ -756,6 +766,7 @@ bitxor_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
756
766
#[ lang="shl" ]
757
767
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
758
768
pub trait Shl < RHS > {
769
+ /// The resulting type after applying the `<<` operator
759
770
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
760
771
type Output ;
761
772
@@ -827,6 +838,7 @@ shl_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
827
838
#[ lang="shr" ]
828
839
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
829
840
pub trait Shr < RHS > {
841
+ /// The resulting type after applying the `>>` operator
830
842
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
831
843
type Output ;
832
844
@@ -900,6 +912,7 @@ shr_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
900
912
#[ rustc_on_unimplemented = "the type `{Self}` cannot be indexed by `{Idx}`" ]
901
913
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
902
914
pub trait Index < Idx : ?Sized > {
915
+ /// The returned type after indexing
903
916
type Output : ?Sized ;
904
917
905
918
/// The method for the indexing (`Foo[Bar]`) operation
@@ -1047,6 +1060,7 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeTo<Idx> {
1047
1060
#[ lang="deref" ]
1048
1061
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1049
1062
pub trait Deref {
1063
+ /// The resulting type after dereferencing
1050
1064
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1051
1065
type Target : ?Sized ;
1052
1066
@@ -1122,6 +1136,7 @@ impl<'a, T: ?Sized> DerefMut for &'a mut T {
1122
1136
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1123
1137
#[ rustc_paren_sugar]
1124
1138
pub trait Fn < Args > {
1139
+ /// The returned type after the call operator is used.
1125
1140
type Output ;
1126
1141
1127
1142
/// This is called when the call operator is used.
@@ -1133,6 +1148,7 @@ pub trait Fn<Args> {
1133
1148
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1134
1149
#[ rustc_paren_sugar]
1135
1150
pub trait FnMut < Args > {
1151
+ /// The returned type after the call operator is used.
1136
1152
type Output ;
1137
1153
1138
1154
/// This is called when the call operator is used.
@@ -1144,6 +1160,7 @@ pub trait FnMut<Args> {
1144
1160
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1145
1161
#[ rustc_paren_sugar]
1146
1162
pub trait FnOnce < Args > {
1163
+ /// The returned type after the call operator is used.
1147
1164
type Output ;
1148
1165
1149
1166
/// This is called when the call operator is used.
0 commit comments