const PackedContainer = packed struct(u2)
raw: bool
other: enum(u1) { gzip, zlib }
pub fn val(c: @This()) flate.Container
1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487
const PackedContainer = packed struct(u2) { raw: bool, other: enum(u1) { gzip, zlib }, pub fn val(c: @This()) flate.Container { return if (c.raw) .raw else switch (c.other) { .gzip => .gzip, .zlib => .zlib, }; } }