std.ops.Modulo
Modulo[T, R]
The binary %
operator.
Required methods
%
Show source codeHide source code
fn pub %(other: ref T) -> R
fn pub %(other: ref T) -> R
Gets the remainder after dividing self
by the given object.
Implementations
Float
impl Modulo[Float, Float] for Float
Int
impl Modulo[Int, Int] for Int