pub trait BitXor<Rhs = Self> {
    type Output;

    fn op_bitxor(self, rhs: Rhs) -> Self::Output;
}

Required Associated Types

The resulting type after applying the ^ operator.

Required Methods

Performs the ^ operation.

Examples
assert_eq!(true ^ false, true);
assert_eq!(true ^ true, false);
assert_eq!(5u8 ^ 1u8, 4);
assert_eq!(5u8 ^ 2u8, 7);

Implementations on Foreign Types

Implementors