Rem and RemAssign

The Rem trait enables the % operator for types that implement it. This operator is used for computing the modulus (also known as the remainder of a division) value of two integers, but has different meanings for various other data types.

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

RemAssign has the same relationship to Rem 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.145.87.161