Module load_constant

Source
Expand description

Provides the implementation for a collection of CustomConst callbacks.

Structs§

LoadConstantsMap
A collection of LoadConstantFn callbacks registered for various impls of CustomConst. The callbacks are keyed by the TypeId of those impls.

Traits§

LoadConstantFn
A helper trait for describing the callback used for emitting CustomConsts, and for hanging documentation. We have the appropriate Fn as a supertrait, and there is a blanket impl for that Fn. We do not intend users to impl this trait.