You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a design decision or has nobody needed it yet?
The wrapping ops are available as via the ops::wrapping::* traits, but it seems like they ought to be a part of PrimInt too. The overflowing ops are completely missing, as far as I can see.
The text was updated successfully, but these errors were encountered:
It's a decision to avoid any breaking changes. The trait isn't sealed, which means we can only add methods with default implementations. For instance, someone could have a newtype wrapper around one of the primitive integer types, for which they implement PrimInt, and they would break if we add new requirements.
Is this a design decision or has nobody needed it yet?
The wrapping ops are available as via the
ops::wrapping::*
traits, but it seems like they ought to be a part of PrimInt too. The overflowing ops are completely missing, as far as I can see.The text was updated successfully, but these errors were encountered: