macro_rules! consign {
(
$(#[$meta:meta])*
let $name:ident = consign($capa:expr) for $typ:ty ;
) => { ... };
(
$(#[$meta:meta])*
let $name:ident = consign($capa:expr, $hash_builder:expr) for $typ:ty ;
) => { ... };
}Expand description
Creates a lazy static consign.
The consign is protected by a RwLock.
Arguments:
$(#[$meta:meta])*meta stuff, typically comments ;$name:identname of the consign ;$capa:exprinitial capacity when creating the consign ;$hash_builder:exproptional hash builder, an implementation ofstd::hash::BuildHasher;$typ:typ,type being hashconsed (the underlying type, not the hashconsed one) ;