-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Support systems that take references as input #15184
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
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
0df60ca
switch input assoc type to generic param
ItsDoot 26ed7e2
experiment for allowing refs in system input
ItsDoot b89e1ea
fix and comment out usage issues for now
ItsDoot 7955555
fix pipe inference in example
ItsDoot 1df45dd
fix ecs piping example
ItsDoot f017238
remove observer trigger transmute
ItsDoot 30138bc
fix pipe system naming
ItsDoot 61c1698
override run function for pipe systems to fix tests
ItsDoot 8e76f43
fix inference for piping, but missing impl for now
ItsDoot 74099bb
switch back to assoc type, and fix type inference
ItsDoot 1b35bd5
fix example
ItsDoot f08681e
add documentation
ItsDoot caa273a
add new input types to prelude
ItsDoot 219f15f
remove unnecessary function, rename other functions, update docs
ItsDoot 6c071b8
fix doctests
ItsDoot 842c92a
cleanup
ItsDoot 66b7506
improve doctests
ItsDoot 3661f6d
remove extra whitespace
ItsDoot c0a06cf
remove sized requirement for inref and inmut inner types
ItsDoot b1a5578
remove compilation test
ItsDoot 8d3e89b
cleanup
ItsDoot 9b98afe
replace generic param with impl trait
ItsDoot d4ddf50
fix some generic bounds
ItsDoot 28c46a0
address feedback
ItsDoot 3299564
fix bound on realonly pipe system
ItsDoot 36140ed
remove unused import
ItsDoot 0192003
fix broken doc link
ItsDoot 261b9e3
Replace per-systeminput impls with generic impl
ItsDoot 432b02a
impl deref and debug for all systeminputs
ItsDoot b68e16c
address feedback
ItsDoot 6c46e48
add staticsysteminput to systeminput docs
ItsDoot c46130e
give methods on SystemInput clearer names
ItsDoot 24f0adb
add side-effectful test demonstrating InMut
ItsDoot 3f65788
fix ci complaint
ItsDoot 69eae8f
remove SystemInput::unwrap (unused)
ItsDoot 981b206
improve docs
ItsDoot 1623043
fix errors
ItsDoot c08d853
add validate_param impls
ItsDoot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there a particular reason this was added in this PR? I don't disagree with the implementation, but it feels tangential to the goal here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added
Deref
/DerefMut
impls for allSystemInput
s for future generic usage of abstracting over mutable or readonly access to a type in the input:where I: SystemInput + DerefMut<Target = String>
, for example. SinceTrigger
is now aSystemInput
, I added it for equality. If it's a controversial change I'm fine with removing it, but thought I might as well since we're mucking around with observers here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No that seems perfectly reasonable, thanks for clarifying! Just wanted to get the reasoning written down in-case anyone else had the same thought.