Trait BitXor

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

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

Required Associated Types§

Source

type Output

The resulting type after applying the ^ operator.

Required Methods§

Source

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

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§

Source§

impl BitXor for i8

Source§

type Output = i8

Source§

fn op_bitxor(self, rhs: i8) -> Self::Output

Source§

impl BitXor for i16

Source§

type Output = i16

Source§

fn op_bitxor(self, rhs: i16) -> Self::Output

Source§

impl BitXor for i32

Source§

type Output = i32

Source§

fn op_bitxor(self, rhs: i32) -> Self::Output

Source§

impl BitXor for i64

Source§

type Output = i64

Source§

fn op_bitxor(self, rhs: i64) -> Self::Output

Source§

impl BitXor for isize

Source§

type Output = isize

Source§

fn op_bitxor(self, rhs: isize) -> Self::Output

Source§

impl BitXor<&&Bson> for f32

Source§

type Output = f64

Source§

fn op_bitxor(self, other: &&Value) -> Self::Output

Source§

impl BitXor<&&Bson> for f64

Source§

type Output = f64

Source§

fn op_bitxor(self, other: &&Value) -> Self::Output

Source§

impl BitXor<&&Bson> for i8

Source§

type Output = i64

Source§

fn op_bitxor(self, other: &&Value) -> Self::Output

Source§

impl BitXor<&&Bson> for i16

Source§

type Output = i64

Source§

fn op_bitxor(self, other: &&Value) -> Self::Output

Source§

impl BitXor<&&Bson> for i32

Source§

type Output = i64

Source§

fn op_bitxor(self, other: &&Value) -> Self::Output

Source§

impl BitXor<&&Bson> for i64

Source§

type Output = i64

Source§

fn op_bitxor(self, other: &&Value) -> Self::Output

Source§

impl BitXor<&&Bson> for isize

Source§

type Output = i64

Source§

fn op_bitxor(self, other: &&Value) -> Self::Output

Source§

impl BitXor<&Bson> for f32

Source§

type Output = f64

Source§

fn op_bitxor(self, other: &Value) -> Self::Output

Source§

impl BitXor<&Bson> for f64

Source§

type Output = f64

Source§

fn op_bitxor(self, other: &Value) -> Self::Output

Source§

impl BitXor<&Bson> for i8

Source§

type Output = i64

Source§

fn op_bitxor(self, other: &Value) -> Self::Output

Source§

impl BitXor<&Bson> for i16

Source§

type Output = i64

Source§

fn op_bitxor(self, other: &Value) -> Self::Output

Source§

impl BitXor<&Bson> for i32

Source§

type Output = i64

Source§

fn op_bitxor(self, other: &Value) -> Self::Output

Source§

impl BitXor<&Bson> for i64

Source§

type Output = i64

Source§

fn op_bitxor(self, other: &Value) -> Self::Output

Source§

impl BitXor<&Bson> for isize

Source§

type Output = i64

Source§

fn op_bitxor(self, other: &Value) -> Self::Output

Source§

impl BitXor<&i8> for &i8

Source§

type Output = i8

Source§

fn op_bitxor(self, rhs: &i8) -> Self::Output

Source§

impl BitXor<&i8> for i8

Source§

type Output = i8

Source§

fn op_bitxor(self, rhs: &i8) -> Self::Output

Source§

impl BitXor<&i16> for &i16

Source§

type Output = i16

Source§

fn op_bitxor(self, rhs: &i16) -> Self::Output

Source§

impl BitXor<&i16> for i16

Source§

type Output = i16

Source§

fn op_bitxor(self, rhs: &i16) -> Self::Output

Source§

impl BitXor<&i32> for &i32

Source§

type Output = i32

Source§

fn op_bitxor(self, rhs: &i32) -> Self::Output

Source§

impl BitXor<&i32> for i32

Source§

type Output = i32

Source§

fn op_bitxor(self, rhs: &i32) -> Self::Output

Source§

impl BitXor<&i64> for &i64

Source§

type Output = i64

Source§

fn op_bitxor(self, rhs: &i64) -> Self::Output

Source§

impl BitXor<&i64> for i64

Source§

type Output = i64

Source§

fn op_bitxor(self, rhs: &i64) -> Self::Output

Source§

impl BitXor<&isize> for &isize

Source§

type Output = isize

Source§

fn op_bitxor(self, rhs: &isize) -> Self::Output

Source§

impl BitXor<&isize> for isize

Source§

type Output = isize

Source§

fn op_bitxor(self, rhs: &isize) -> Self::Output

Source§

impl BitXor<Bson> for f32

Source§

type Output = f64

Source§

fn op_bitxor(self, other: Value) -> Self::Output

Source§

impl BitXor<Bson> for f64

Source§

type Output = f64

Source§

fn op_bitxor(self, other: Value) -> Self::Output

Source§

impl BitXor<Bson> for i8

Source§

type Output = i64

Source§

fn op_bitxor(self, other: Value) -> Self::Output

Source§

impl BitXor<Bson> for i16

Source§

type Output = i64

Source§

fn op_bitxor(self, other: Value) -> Self::Output

Source§

impl BitXor<Bson> for i32

Source§

type Output = i64

Source§

fn op_bitxor(self, other: Value) -> Self::Output

Source§

impl BitXor<Bson> for i64

Source§

type Output = i64

Source§

fn op_bitxor(self, other: Value) -> Self::Output

Source§

impl BitXor<Bson> for isize

Source§

type Output = i64

Source§

fn op_bitxor(self, other: Value) -> Self::Output

Source§

impl BitXor<i8> for &i8

Source§

type Output = i8

Source§

fn op_bitxor(self, rhs: i8) -> Self::Output

Source§

impl BitXor<i16> for &i16

Source§

type Output = i16

Source§

fn op_bitxor(self, rhs: i16) -> Self::Output

Source§

impl BitXor<i32> for &i32

Source§

type Output = i32

Source§

fn op_bitxor(self, rhs: i32) -> Self::Output

Source§

impl BitXor<i64> for &i64

Source§

type Output = i64

Source§

fn op_bitxor(self, rhs: i64) -> Self::Output

Source§

impl BitXor<isize> for &isize

Source§

type Output = isize

Source§

fn op_bitxor(self, rhs: isize) -> Self::Output

Implementors§