Crate assoc_threadlocal

Source
Expand description

This crate allows one to associate thread localc objects to types.

Macros§

assoc_threadlocal
Helper macro doing the boilerplate implementation. This must be a macro because we can not use generic parameters from the outer scope.

Traits§

AssocThreadLocal
Associates a static object of type T and a marker TAG. Use the assoc_threadlocal!() macro for implementing this trait on types.