A BufSet is a set of strings. The BufSet duplicates strings internally, and never takes ownership of strings which are passed to it.
Functions
fn clone(self: *const BufSet) Allocator.Error!BufSet
Creates a copy of this BufSet, using the same allocator.
fn cloneWithAllocator(self: *const BufSet, new_allocator: Allocator) Allocator.Error!BufSet
Creates a copy of this BufSet, using a specified allocator.
fn contains(self: BufSet, value: []const u8) bool
Check if the set contains an item matching the passed string
fn init(a: Allocator) BufSet
Create a BufSet using an allocator. The allocator will be used internally for …
Create a BufSet using an allocator. The allocator will be used internally for both backing allocations and string duplication.
fn insert(self: *BufSet, value: []const u8) !void
Insert an item into the BufSet. The item will be copied, so the caller may del…
Insert an item into the BufSet. The item will be copied, so the caller may delete or reuse the passed string immediately.