Crate assoc_static

Crate assoc_static 

Source
Expand description

This crate allows one to associate static objects to types. This is particulary usefull to overcome the rust limitation that static data can not be generic.

Macros§

assoc_static
Helper macro doing the boilerplate implementation. This must be a macro because statics can not take template parameters from the outer scope.

Traits§

AssocStatic
Associates a static object of type T and a marker TAG. Use the assoc_static!() macro for implemeting this trait on types.