This allows the reflection database to be specified for serializing/deserializing in rbx_binary and rbx_xml. It does this by having the structs for these crates store a reflection database rather than using rbx_reflection_database inline. This doesn't change how the crates are used normally since they use the bundled database by default, but it provides the opportunity for tools like Rojo to specify their own database.
I took some liberties here also, and cleaned up the name of lifetimes a bit. Specifically, I've changed it so that all lifetimes that refer to a reflection database use a 'db lifetime and all lifetimes that refer to a WeakDom use a 'dom lifetime. This is to avoid confusion because 'a is not specific or helpful.
This allows the reflection database to be specified for serializing/deserializing in
rbx_binary
andrbx_xml
. It does this by having the structs for these crates store a reflection database rather than usingrbx_reflection_database
inline. This doesn't change how the crates are used normally since they use the bundled database by default, but it provides the opportunity for tools like Rojo to specify their own database.I took some liberties here also, and cleaned up the name of lifetimes a bit. Specifically, I've changed it so that all lifetimes that refer to a reflection database use a
'db
lifetime and all lifetimes that refer to aWeakDom
use a'dom
lifetime. This is to avoid confusion because'a
is not specific or helpful.