-
Notifications
You must be signed in to change notification settings - Fork 382
Add 0.15 release notes for function reflection #1768
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 0.15 release notes for function reflection #1768
Conversation
a57265c
to
ad6897f
Compare
I didn't see anything about overloading, will that be in separate notes or did that not land? |
Overloading didn't land IIRC. |
Yeah unfortunately. But not too big a deal since that at least gives us more time to test it out. I did briefly mention it in the |
Co-authored-by: Alice Cecile <[email protected]> Co-authored-by: MiniaczQ <[email protected]>
Using `FunctionInfo`, a `DynamicFunction` will print out its signature when debug-printed. | ||
|
||
```rust | ||
dbg!(String::len.into_function()); | ||
// Outputs: | ||
// DynamicFunction(fn alloc::string::String::len(_: &alloc::string::String) -> usize) | ||
``` |
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.
Just added this because I think it's really cool we can still print out the full signature, but let me know if it's too much to include for the release post.
Adds release notes for the function reflection feature added this cycle.
This feature spans the following PRs (in order of date opened):
DynamicClosure
andDynamicClosureMut
bevy#14141DynamicFunction
ergonomics bevy#14201DynamicClosure<'static>
inFunctionRegistry
bevy#14704functions
feature docs bevy#15086FunctionRegistry
inbevy_reflect::func
docs bevy#15147FunctionRegistry::call
bevy#15148Function
trait bevy#15205Return::Unit
variant bevy#15484This feature has a lot to it. Please feel free to ask for additions/deletions/modifications!