Skip to main content

Module polyfill

Module polyfill 

Source
Expand description

The types in this module exist to overcome limitations of the Rust compiler, namely limitations in const generics.

Macrosยง

lazy_value ๐Ÿ”’
Creates a temporary struct that implements LazyValueFn and returns an instance of it.
value ๐Ÿ”’
Assigns the provided value to a static, and returns a reference to it.

Traitsยง

LazyValueFn
Trait that helps us convert a fn() -> &'static impl Value to a fn() -> &'static dyn Value.