WithNaN.hookOpCast
Lhs hookOpCast(Lhs, Rhs)(Rhs rhs)If rhs is WithNaN.defaultValue!Rhs, returns WithNaN.defaultValue!Lhs. Otherwise, returns cast(Lhs) rhs.
Parameters
rhs | the value being cast (Rhs is the first argument to Checked) |
Lhs | the target type of the cast |
Returns
The result of the cast operation.