Function supersetOf [src]

Returns true iff the first bit set is the superset of the second one.

Prototype

pub fn supersetOf(self: Self, other: Self) bool

Parameters

self: Selfother: Self

Source

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; }