Update special types.
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- documentation
Research direction
Start with special-types-and-traits.md and review how the document defines or lists special types. Investigate the proposed Rust traits and lang items, including Fn, FnMut, FnOnce, comparison and operator traits, and the unstable items listed here. Done means establishing the criteria for inclusion and updating the document with an agreed complete list; Termination is already addressed by #1194.
Written by the indexing model from the issue text.
Description
I think there are some types missing from special-types-and-traits.md. In particular, I think Fn, 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?
- Future
- ManuallyDrop
- IntoIterator
- IntoFuture
- Unstable but maybe exposed in some way?:
Termination — Exposed indirectly viaDone in #1194main.- Unsize / CoerceUnsized — Automatically implemented, involved in coercions?
- UnsafeCell — Maybe for const eval?
- StructuralPartialEq / StructuralEq — Needed for match checking?
- Unstable (not exposed?):
- Generator, GeneratorState
- Try
- DispatchFromDyn ()
- VaListImpl (va_list lang item)
- Receiver (currently hard-coded in reference)
- start
- eh_personality
- eh_catch_typeinfo
- Panic stuff — From a language perspective, is there anything relevant here?
- Relevance unknown:
- Freeze
- exchange_malloc
- box_free
- drop_in_place
- oom
- alloc_layout
- MaybeUninit
- align_offset — const eval?
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 607
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-lang/reference
-
A-const-eval A-undefined-behavior
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
A-resolve
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
A-coercions
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
All issues in rust-lang/reference
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100