Skip to main content

Module reference

Module reference 

Source
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§

ReflectBaseType
The type id and base id of the value we want to access
ReflectRefIter
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.
ReflectReference
A reference to an arbitrary reflected instance.

Enums§

IterationKey
The key of the current iteration
ReflectBase
The Id of the kind of reflection base being pointed to
TypeIdSource
Specifies where we should source the type id from when reflecting a ReflectReference

Traits§

ReflectionPathExt
An iterator over a reflect reference that will keep returning the next element forever.