Skip to content
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

Yoink assert_object_safe #17531

Open
BenjaminBrienen opened this issue Jan 25, 2025 · 1 comment
Open

Yoink assert_object_safe #17531

BenjaminBrienen opened this issue Jan 25, 2025 · 1 comment
Labels
A-Cross-Cutting Impacts the entire engine C-Code-Quality A section of code that is hard to understand or change D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Implementation This issue is ready for an implementation PR. Go for it!

Comments

@BenjaminBrienen
Copy link
Contributor

BenjaminBrienen commented Jan 25, 2025

we can just

/// Assert Trait is dyn compatible
const _: Option<Box<dyn Trait>> = None;

Originally posted by @mintlu8 in #11478 (comment)

@BenjaminBrienen BenjaminBrienen added A-Cross-Cutting Impacts the entire engine C-Code-Quality A section of code that is hard to understand or change D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Implementation This issue is ready for an implementation PR. Go for it! labels Jan 25, 2025
@NyxAlexandra
Copy link

we can just

/// Assert Trait is dyn compatible
const _: Option<Box<dyn Trait>> = None;

Originally posted by @mintlu8 in #11478 (comment)

Or Option<&dyn Trait>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Cross-Cutting Impacts the entire engine C-Code-Quality A section of code that is hard to understand or change D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Implementation This issue is ready for an implementation PR. Go for it!
Projects
None yet
Development

No branches or pull requests

2 participants