pub fn supersetOf(self: Self, other: Self) bool
Returns true iff the first bit set is the superset of the second one.
self: Self
other: Self
1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049
pub fn supersetOf(self: Self, other: Self) bool { if (self.bit_length != other.bit_length) { return false; } const num_masks = numMasks(self.bit_length); var i: usize = 0; return while (i < num_masks) : (i += 1) { if (self.masks[i] & other.masks[i] != other.masks[i]) { break false; } } else true; }
Returns true iff the first bit set is the superset of the second one.