Expand description
§Motivation
Traits and structs needed to support the creation of bindings for scripting languages.
reflection gives us access to dyn PartialReflect objects via their type name,
Scripting languages only really support Clone objects so if we want to support references,
we need wrapper types which have owned and ref variants.
Structs§
- Reflect
Base Type - The type id and base id of the value we want to access
- Reflect
RefIter - A generic iterator over any reflected value. Unlike a normal iterator, this one does not have a halting condition, it will keep returning elements forever. The iterator does not try to access the value, it just works out the next index/key to access. You will know you’ve reached the end when you get an error when trying to access the next element.
- Reflect
Reference - A reference to an arbitrary reflected instance.
Enums§
- Iteration
Key - The key of the current iteration
- Reflect
Base - The Id of the kind of reflection base being pointed to
- Type
IdSource - Specifies where we should source the type id from when reflecting a ReflectReference
Traits§
- Reflection
Path Ext - An iterator over a reflect reference that will keep returning the next element forever.