pub fn addSetAssertSafe(self: *Self, other: Self) void
Increases the all key counts by given multiset. Caller asserts operation will not overflow any key.
self: *Self
other: Self
748 749 750 751 752 753
pub fn addSetAssertSafe(self: *Self, other: Self) void { inline for (@typeInfo(E).@"enum".field_values) |field_value| { const key = @as(E, @fromBackingInt(@intCast(field_value))); self.addAssertSafe(key, other.getCount(key)); } }
Increases the all key counts by given multiset. Caller asserts operation will not overflow any key.