[][src]Macro hashconsing::consign

macro_rules! consign {
    (
        $(#[$meta:meta])*
        let $name:ident = consign($capa:expr) for $typ:ty ;
    ) => { ... };
}

Creates a lazy static consign.

The consign is protected by a RwLock.

Arguments:

  • $(#[$meta:meta])* meta stuff, typically comments ;
  • $name:ident name of the consign ;
  • $capa:expr initial capacity when creating the consign ;
  • $typ:typ, type being hashconsed (the underlying type, not the hashconsed one) ;