fn clamp(val: anytype, lower: anytype, upper: anytype) @TypeOf(val, lower, upper)
[src]
Limit val to the inclusive range [lower, upper].
fn clamp(val: anytype, lower: anytype, upper: anytype) @TypeOf(val, lower, upper)
Limit val to the inclusive range [lower, upper].