Skip to main content

Crate runtime_context

Crate runtime_context 

Source
Expand description

Runtime context for storing heterogeneous values by type.

This crate provides a lightweight type map with support for owned values and borrowed (immutable or mutable) references. It is built on top of better_any and uses an optimized TypeId hasher for fast lookups.

Macros§

tid
Main safe implementation interface of related unsafe traits

Structs§

Context
Runtime context storing values by type.
TypeIdHasher
A hasher for TypeIds that takes advantage of its known characteristics.

Enums§

Data
Stored value variants inside a Context.

Traits§

ShareableTid
Thread-safe variant of Tid.

Type Aliases§

TypeMap
A HashMap optimized for TypeId keys.