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
It took me a bit to realize that PrimInt is the trait that provides the bit manipulation operations on primitive types (nothing more, nothing less). The methods are documented but the Trait itself is not documented.
PrimInt corresponds to the unique methods of rust's old Int trait (removed in rust-lang/rust@eeb9488), with the methods that were already covered in traits like Zero and One now added by inheritance. Because of the broad inherited traits, it's not really "just" a bit-twiddling trait though, so it should be documented as being a generic primitives trait.
108: int: document PrimInt trait r=cuviper a=dvdhrm
This documents the PrimInt trait, explains its intentions and features
as well as mentions its origins for future reference.
Closes#11.
Co-authored-by: David Rheinsberg <[email protected]>
From @gnzlbg on December 17, 2015 12:10
It took me a bit to realize that PrimInt is the trait that provides the bit manipulation operations on primitive types (nothing more, nothing less). The methods are documented but the Trait itself is not documented.
Copied from original issue: rust-num/num#140
The text was updated successfully, but these errors were encountered: