init
Create a BufMap backed by a specific allocator. That allocator will be used for both backing allocations and string deduplication.
Function parameters
Parameters
BufMap copies keys and values before they go into the map and
Types
- BufMap
- BufMap copies keys and values before they go into the map and
Source
Implementation
pub fn init(allocator: Allocator) BufMap {
return .{ .hash_map = BufMapHashMap.init(allocator) };
}