You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there are some types missing from special-types-and-traits.md. In particular, I thinkFn, FnMut, and FnOnce are special. What is the criteria for being special? Is there anything else missing from the list?
Things to consider adding:
cmp:
Eq
PartialEq
Ord
PartialOrd
ops:
Add
AddAssign
BitAnd
BitAndAssign
BitOr
BitOrAssign
BitXor
BitXorAssign
Div
DivAssign
Fn
FnMut
FnOnce
Index
IndexMut
Mul
MulAssign
Neg
Not
Rem
RemAssign
Shl
ShlAssign
Shr
ShrAssign
Sub
SubAssign
Misc:
Unpin — Automatically implemented on most types, but not otherwise "used" by the language?
And type or trait is special if it requires or is a dependency of compiler machinery. The types you think are missing are probably the operator traits and we should probably duplicate that list into the page.
I think there are some types missing from special-types-and-traits.md. In particular, I think
Fn
,FnMut
, andFnOnce
are special. What is the criteria for being special? Is there anything else missing from the list?Things to consider adding:
Termination — Exposed indirectly viaDone in Document the Termination trait for main() and test functions #1194main
.The text was updated successfully, but these errors were encountered: