Conversation
|
|
alice-i-cecile
left a comment
There was a problem hiding this comment.
I really like the consistency this adds, and the language changes are good. There's a few things to clean up. Not sure if / how we can resolve the dev-dependency problem; I'd probably just revert that and merge it without links for now :(
|
I moved back the macro docs to the I also removed the |
|
Squashed because rebasing in multiple steps is a headache. I preserved co-authors in the commit message. |
|
Rebased. I also pushed new commits. The first of the new commits is 5b064a2. |
rparrett
left a comment
There was a problem hiding this comment.
Don't have time to look this over this morning, but I did a quick pass with the spell-checker.
|
Curious about the motivation behind
The general pattern in rust docs seems to be for the |
|
Ping @BoxyUwU for docs review following your |
|
Generally what happend in that PR is that all of the traits were merged into |
Co-authored-by: Boxy <supbscripter@gmail.com>
|
Thanks!! |
|
I split this into multiple PRs, since it's difficult to find people to review it. Hopefully they are more digestible. |
# Objective - Document `QueryCombinationIter` ## Solution - Describe the item, add usage and examples - Copy notes about the number of query items generated from the corresponding query methods (they will be removed in #5742 ([motivation])) ## Additional notes - Derived from #4989 [motivation]: #4989 (comment)
# Objective - Document `QueryCombinationIter` ## Solution - Describe the item, add usage and examples - Copy notes about the number of query items generated from the corresponding query methods (they will be removed in bevyengine#5742 ([motivation])) ## Additional notes - Derived from bevyengine#4989 [motivation]: bevyengine#4989 (comment)
# Objective - Update docs to `WorldQuery` ## Solution - See bevyengine#4989. This PR is derived from it, and limited to the `WorldQuery` item docs.
# Objective - Update `Query` docs with better terminology - add some performance remarks (Fixes bevyengine#4742) ## Solution - See bevyengine#4989. This PR is derived from it. It just includes changes to the `Query` struct docs.
# Objective - Increase consistency across documentation of `Query` methods. - Fixes bevyengine#5506 ## Solution - See bevyengine#4989. This PR is derived from it. It just includes changes to the `Query` methods' docs.
# Objective - Document `QueryCombinationIter` ## Solution - Describe the item, add usage and examples - Copy notes about the number of query items generated from the corresponding query methods (they will be removed in bevyengine#5742 ([motivation])) ## Additional notes - Derived from bevyengine#4989 [motivation]: bevyengine#4989 (comment)
# Objective - Update docs to `WorldQuery` ## Solution - See bevyengine#4989. This PR is derived from it, and limited to the `WorldQuery` item docs.
# Objective - Update `Query` docs with better terminology - add some performance remarks (Fixes bevyengine#4742) ## Solution - See bevyengine#4989. This PR is derived from it. It just includes changes to the `Query` struct docs.
# Objective - Increase consistency across documentation of `Query` methods. - Fixes bevyengine#5506 ## Solution - See bevyengine#4989. This PR is derived from it. It just includes changes to the `Query` methods' docs.
Objective
Querydocs need a refresh and they look quite inconsistent.WorldQuerydocs had some info about the derive macro that should not belong there.Solution
Documentation has been changed for the following items:
Query(item level and methods)QueryCombinationIterWorldQuerytraitWorldQuerymacroQueryQueryCombinationIterQueryCombinationIterfromQuerymethods to the item itself.WorldQuerytraitWorldQuerymacroComponentA,my_system). Examples with concrete identifiers are used where appropriate.WorldQuerymacro.Additional notes
I had to addSolved.bevy_ecsas a dev-dependency ofbevy_ecs_macrosto make doctests compile. Discussion on this is appreciated. I'm puttingS-Controversialfor now until a collective decision can be made.QueryandWorldQuerymacro idioms should be in the book, but in the meantime they can stay here.I don't know what the computational complexity forSolved.many_iterandmany_for_each_mutis, so I added a placeholder for now.#[world_query(ignore)]feature, as it is no longer needed.cargo doc -p bevy_ecs --no-deps --open).Todo list:
many_iterandmany_for_each_mutiter_many_mutdocumentation is confused #5506