| ... | @@ -284,6 +284,18 @@ pub fn EnumSet(comptime E: type) type { | ... | @@ -284,6 +284,18 @@ pub fn EnumSet(comptime E: type) type { |
| 284 | /// A set containing all possible keys. | 284 | /// A set containing all possible keys. |
| 285 | pub const full: Self = .{ .bits = .full }; | 285 | pub const full: Self = .{ .bits = .full }; |
| 286 | | 286 | |
| | 287 | /// Deprecated: use `.empty`. |
| | 288 | /// Returns a set containing no keys. |
| | 289 | pub fn initEmpty() Self { |
| | 290 | return .empty; |
| | 291 | } |
| | 292 | |
| | 293 | /// Deprecated: use `.full`. |
| | 294 | /// Returns a set containing all possible keys. |
| | 295 | pub fn initFull() Self { |
| | 296 | return .full; |
| | 297 | } |
| | 298 | |
| 287 | /// Returns a set containing multiple keys. | 299 | /// Returns a set containing multiple keys. |
| 288 | pub fn initMany(keys: []const Key) Self { | 300 | pub fn initMany(keys: []const Key) Self { |
| 289 | var set: Self = .empty; | 301 | var set: Self = .empty; |