pub inline fn rangeAtMost(T: type, at_least: T, at_most: T, weight: u64) Weight T: typeat_least: Tat_most: Tweight: u64303
304
305
306
307
308
309
310 pub inline fn rangeAtMost(T: type, at_least: T, at_most: T, weight: u64) Weight {
std.debug.assert(intFromValue(at_least) <= intFromValue(at_most));
return .{
.min = intFromValue(at_least),
.max = intFromValue(at_most),
.weight = weight,
};
}