fn lossyCast(comptime T: type, value: anytype) T
[src]
Cast a value to a different type. If the value doesn’t fit in, or can’t be perfectly represented by, the new type, it will be converted to the closest possible representation.
fn lossyCast(comptime T: type, value: anytype) T
Cast a value to a different type. If the value doesn’t fit in, or can’t be perfectly represented by, the new type, it will be converted to the closest possible representation.