-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Labels
Description
All signed rust integer types has an unsgined_abs function, e.g. (-7_i32).unsigned_abs() == 7_u32, which is there to correctly handle i32::MIN (which cannot be negated as a i32).
I suggest we either add this to add a new PrimInt (returning identify for unsigned integers), orUnsignedAbs trait for this.
I'd be happy to make a PR if this sounds good.