Skip to main content

t_singleton

Function t_singleton 

Source
pub fn t_singleton(
    store: impl AsContextMut,
    instance: &Instance,
) -> Result<Rooted<AnyRef>>
Expand description

Resolves the compiler-emitted t singleton export (ADR-0033: the $t module global, an empty-struct instance identified by reference equality) so the host can recognise it when decoding an AnyRef result or list cell. Every module the compiler emits exports it, so a missing export is a structured error, not a silent fallback.