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§
- Assoc
Static - Associates a static object of type T and a marker TAG.
Use the
assoc_static!()macro for implemeting this trait on types.