fn initBits(comptime T: type, out: anytype, num: u16) Bits(T) T: typeoutnum: u161873
1874
1875
1876
1877
1878
1879 fn initBits(comptime T: type, out: anytype, num: u16) Bits(T) {
const UT = @Int(.unsigned, @bitSizeOf(T));
return .{
@bitCast(@as(UT, @intCast(out))),
num,
};
}