EmbarkStudios / mirror-mirror

🪞 Powerful reflection library for Rust
Apache License 2.0
79 stars 2 forks source link

Implement `type_descriptor` as a default trait method #81

Closed bnjbvr closed 1 year ago

bnjbvr commented 1 year ago

This still allows for custom implementations of that trait method, and allows making the private_new function private, thus allowing to drop the prefix. Also slightly cleaner. Added comments as well explaining what those do.

(FYI: the body of the method is unchanged, this is just code motion.)