Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an Entry api to EntityWorldMut. #10650

Merged
merged 20 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
7dc910a
Added `Entry`, `OccupiedEntry` and `VacantEntry`
13ros27 Nov 19, 2023
d5c0e23
Added Entry.add_modify which uses OccupiedEntry.get_mut, which does l…
13ros27 Nov 19, 2023
17b924e
Added Entry.or_default, using OccupiedEntry.into_mut and VacantEntry.…
13ros27 Nov 19, 2023
808e2b1
Added Entry.insert_entry
13ros27 Nov 20, 2023
35804b0
Added Entry.or_insert
13ros27 Nov 20, 2023
568cfca
Added Entry.or_insert_with
13ros27 Nov 20, 2023
a68f114
Fixed `Entry.insert_entry` so that it will change the value if Occupi…
13ros27 Nov 20, 2023
fa5ed2b
Fixed lifetimes and signatures to avoid the insane lifetime alchemy
13ros27 Nov 20, 2023
215ab4c
Added OccupiedEntry.get and OccupiedEntry.take
13ros27 Nov 20, 2023
1e27ce2
Moved _marker to after entity_world
13ros27 Nov 20, 2023
d936215
Added basic docs (no examples yet)
13ros27 Nov 20, 2023
6636a52
Fixed some doc-links and made these types public so they show up in t…
13ros27 Nov 20, 2023
1ce81c2
Added examples to all of Entry's methods
13ros27 Nov 20, 2023
b7ebc40
Added examples to the methods of OccupiedEntry and VacantEntry
13ros27 Nov 20, 2023
2190952
Appeased clippy
13ros27 Nov 20, 2023
71e0e81
Adjusted doc comment 'default' -> 'given default'
13ros27 Nov 20, 2023
d69e4fa
Add doc test
alice-i-cecile Nov 20, 2023
0c989d8
Fixed doc-test
13ros27 Nov 20, 2023
55c688b
Adjusted doc comment and added an extra comment to `OccupiedEntry` ex…
13ros27 Nov 20, 2023
0ec411c
Replaced unwrap_unchecked with unwrap and changed safety comments to …
13ros27 Nov 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading