Further static safeguard against creating instances of types with no_constructor
in Rust
#629
Labels
breaking-change
Issues and PRs that are breaking to fix/merge.
c: export
Component: export (mod export, derive)
feature
Adds functionality to the library
Milestone
@Bromeon mentioned on Discord that it can be nice to introduce a
DefaultConstructible
trait forNativeClass
es that don't haveno_constructor
, and use it as a bound forInstance::new
and similar functions. Although this doesn't prevent the engine from trying to call the constructor anyway, it might be a nice-to-have on the Rust side.This is a breaking change, and should be considered for the next minor version.
The text was updated successfully, but these errors were encountered: