Returns a new [KindSet] with the addition of the supplied [Kind]. This function is marked `const` to allow creation of const [KindSets][KindSet].
(&self, kind: Kind)
| 101 | /// |
| 102 | /// This function is marked `const` to allow creation of const [KindSets][KindSet]. |
| 103 | pub const fn add(&self, kind: Kind) -> Self { |
| 104 | Self(self.0 | (1 << (kind as u8 & 0b111111))) |
| 105 | } |
| 106 | |
| 107 | /// Returns a new [KindSet] combined with the other [KindSet]. |
| 108 | /// |
no outgoing calls