pub fn eql(self: Self, other: Self) bool
Returns true iff all key counts are the same as given multiset.
self: Self
other: Self
775 776 777 778 779 780 781 782 783
pub fn eql(self: Self, other: Self) bool { inline for (@typeInfo(E).@"enum".field_values) |field_value| { const key = @as(E, @fromBackingInt(@intCast(field_value))); if (self.getCount(key) != other.getCount(key)) { return false; } } return true; }
Returns true iff all key counts are the same as given multiset.