Skip to main content

Module introspect

Module introspect 

Source
Expand description

Typed, whitelisted component-introspection registry for the dynamic DOM n.components() / n.component("LayoutBox") reads (design 4.7).

Each exposable Lumen component registers a reader that turns its public fields into a (name, value) string map. The read is bounded and typed; there is no raw transmute or arbitrary memory access, and a name that is not in the registry is an error rather than an empty read. The runtime runs the registry against every element each tick and publishes the resulting maps into the cross-thread snapshot the script hosts read.

Structs§

ComponentIntrospection
The whitelist of exposable components and their field readers. Built once by the runtime (see with_defaults) and consulted per element.

Type Aliases§

ComponentReader
Reader for one exposable component: Some(map) when the entity carries it, None when absent.
ComponentValueMap
A field map for one component instance: (field, value) pairs.