Rem

The remainder operator %.Types implementing this trait support the remainder operation via the % operator. # Examples

assert!(3_u8 % 2_u8 == 1_u8);

Fully qualified path: core::traits::Rem

pub trait Rem<T>

Trait functions

rem

Performs the % operation. # Examples

assert!(12_u8 % 10_u8 == 2_u8);

Fully qualified path: core::traits::Rem::rem

fn rem(lhs: T, rhs: T) -> T