Draft
Conversation
be83018 to
f72b8f5
Compare
f72b8f5 to
bc8577e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
Make Bounded3d a dyn-compatible object. This is so that components can contain a
dyn Bounded3dtype member, and won't need a template.I am suggesting this as a draft, because there is an alternative that may be preferable (shown below). There are also other such traits, e.g., Bounded2d that will need to go through the same process for the same result.
Solution
Refractor Bounded3d so that its methods accept
Isometry3d, rather than anInto<Isometry3d>. This removes the single item limiting Bounded3d from being dyn-compatible.Testing
Alternative
As an alternative, a new dyn-compatible trait can be created, with a blanket implementation for
Bounded3d. This requires no code change from other implementations of Bounded3d to change their signature.Related: #19491