Commit 6d72258
authored
Remove default implementation of
# Objective
- Remove the default implementation of `extend_from_iter` from the
RelationshipSourceCollection trait to standardize collection types
providing their own implementation.
- Fixes #20253
## Solution
- Removed the default implementation of `extend_from_iter`
- Added `extend_from_iter` implementation for BTreeSet that uses its
native .extend() method
- All other collection types (Vec, SmallVec, EntityHashSet, IndexSet,
EntityIndexSet, Entity) already had their own implementationsextend_from_iter from RelationshipSourceCollection (#20255)1 parent 18152a7 commit 6d72258
File tree
2 files changed
+32
-7
lines changed- crates/bevy_ecs/src/relationship
- release-content/migration-guides
2 files changed
+32
-7
lines changedLines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 81 | + | |
88 | 82 | | |
89 | 83 | | |
90 | 84 | | |
| |||
582 | 576 | | |
583 | 577 | | |
584 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
585 | 583 | | |
586 | 584 | | |
587 | 585 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments