authorgravatar for techatrix@mailbox.orgTechatrix <techatrix@mailbox.org> 2026-04-06 15:54:47+02:00
committergravatar for techatrix@mailbox.orgTechatrix <techatrix@mailbox.org> 2026-04-06 15:54:47+02:00
logbe878b87c2280a3289bcd27e55843dec1ed7b568
tree07dee0a728727ff17f45098105a5d5fd42dbb7bc
parent5ec8e45f3d11265634c4943daf95f85745d17c2f
signaturebadge-check Signed by SSH key SHA256:HYC3SjXQcAt6uwv9pu/6OoVQ2rUH8rb5zKiUHSe9uxk

std.EnumSet: add back deprecated initialization functions


1 files changed, 12 insertions(+), 0 deletions(-)

lib/std/enums.zig+12
......@@ -284,6 +284,18 @@ pub fn EnumSet(comptime E: type) type {
284284 /// A set containing all possible keys.
285285 pub const full: Self = .{ .bits = .full };
286286
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
287299 /// Returns a set containing multiple keys.
288300 pub fn initMany(keys: []const Key) Self {
289301 var set: Self = .empty;