Cap
Returns the number of allocated slots.
Module: Std::HashSet
Signature
rux
func Cap(self) -> uint;Returns
uint — the number of slots currently allocated. Always greater than Len; the set grows (doubling its capacity) before it fills up.
Example
rux
import Std::HashSet::*;
// After Init, Cap() is the default of 16.See also
Std::HashSet— the typeLen— number of live keysInit— pre-size withInitWithCap