Shr and ShrAssign

The Shr trait enables the >> operator for types that implement it. This operator is used for right-shifting an integer by a number of bits, but has different meanings for various other data types.

The Shr trait has both an Output associated type, and the option of implementing it to operate on different types by implementing Shr<OtherType> rather than just Shr.

ShrAssign has the same relationship to Shr that AddAssign has to Add.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.124.21