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

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

Required Associated Types§

source

type Output

The resulting type after applying the & operator.

Required Methods§

source

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

Performs the & operation.

§Examples
assert_eq!(true & false, false);
assert_eq!(true & true, true);
assert_eq!(5u8 & 1u8, 1);
assert_eq!(5u8 & 2u8, 0);

Implementations on Foreign Types§

source§

impl BitAnd for Value

§

type Output = bool

source§

fn op_bitand(self, rhs: Self) -> Self::Output

source§

impl BitAnd for i8

§

type Output = i8

source§

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

source§

impl BitAnd for i16

§

type Output = i16

source§

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

source§

impl BitAnd for i32

§

type Output = i32

source§

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

source§

impl BitAnd for i64

§

type Output = i64

source§

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

source§

impl BitAnd for isize

§

type Output = isize

source§

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

source§

impl BitAnd for u8

§

type Output = u8

source§

fn op_bitand(self, rhs: u8) -> Self::Output

source§

impl BitAnd for u16

§

type Output = u16

source§

fn op_bitand(self, rhs: u16) -> Self::Output

source§

impl BitAnd for u32

§

type Output = u32

source§

fn op_bitand(self, rhs: u32) -> Self::Output

source§

impl BitAnd for u64

§

type Output = u64

source§

fn op_bitand(self, rhs: u64) -> Self::Output

source§

impl BitAnd<&&Value> for &Value

§

type Output = bool

source§

fn op_bitand(self, rhs: &&Value) -> Self::Output

source§

impl BitAnd<&&Value> for Value

§

type Output = bool

source§

fn op_bitand(self, rhs: &&Value) -> Self::Output

source§

impl BitAnd<&&Value> for bool

§

type Output = bool

source§

fn op_bitand(self, rhs: &&Value) -> Self::Output

source§

impl BitAnd<&&Value> for i8

§

type Output = i64

source§

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

source§

impl BitAnd<&&Value> for i16

§

type Output = i64

source§

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

source§

impl BitAnd<&&Value> for i32

§

type Output = i64

source§

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

source§

impl BitAnd<&&Value> for i64

§

type Output = i64

source§

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

source§

impl BitAnd<&&Value> for isize

§

type Output = i64

source§

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

source§

impl BitAnd<&&Value> for u8

§

type Output = u64

source§

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

source§

impl BitAnd<&&Value> for u16

§

type Output = u64

source§

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

source§

impl BitAnd<&&Value> for u32

§

type Output = u64

source§

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

source§

impl BitAnd<&&Value> for u64

§

type Output = u64

source§

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

source§

impl BitAnd<&Value> for &Value

§

type Output = bool

source§

fn op_bitand(self, rhs: &Value) -> Self::Output

source§

impl BitAnd<&Value> for &i8

§

type Output = i64

source§

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

source§

impl BitAnd<&Value> for &i16

§

type Output = i64

source§

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

source§

impl BitAnd<&Value> for &i32

§

type Output = i64

source§

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

source§

impl BitAnd<&Value> for &i64

§

type Output = i64

source§

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

source§

impl BitAnd<&Value> for &isize

§

type Output = i64

source§

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

source§

impl BitAnd<&Value> for &u8

§

type Output = u64

source§

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

source§

impl BitAnd<&Value> for &u16

§

type Output = u64

source§

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

source§

impl BitAnd<&Value> for &u32

§

type Output = u64

source§

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

source§

impl BitAnd<&Value> for &u64

§

type Output = u64

source§

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

source§

impl BitAnd<&Value> for Value

§

type Output = bool

source§

fn op_bitand(self, rhs: &Value) -> Self::Output

source§

impl BitAnd<&Value> for bool

§

type Output = bool

source§

fn op_bitand(self, rhs: &Value) -> Self::Output

source§

impl BitAnd<&Value> for i8

§

type Output = i64

source§

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

source§

impl BitAnd<&Value> for i16

§

type Output = i64

source§

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

source§

impl BitAnd<&Value> for i32

§

type Output = i64

source§

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

source§

impl BitAnd<&Value> for i64

§

type Output = i64

source§

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

source§

impl BitAnd<&Value> for isize

§

type Output = i64

source§

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

source§

impl BitAnd<&Value> for u8

§

type Output = u64

source§

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

source§

impl BitAnd<&Value> for u16

§

type Output = u64

source§

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

source§

impl BitAnd<&Value> for u32

§

type Output = u64

source§

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

source§

impl BitAnd<&Value> for u64

§

type Output = u64

source§

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

source§

impl BitAnd<&i8> for &i8

§

type Output = i8

source§

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

source§

impl BitAnd<&i8> for Value

§

type Output = i64

source§

fn op_bitand(self, other: &i8) -> Self::Output

source§

impl BitAnd<&i8> for i8

§

type Output = i8

source§

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

source§

impl BitAnd<&i16> for &i16

§

type Output = i16

source§

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

source§

impl BitAnd<&i16> for Value

§

type Output = i64

source§

fn op_bitand(self, other: &i16) -> Self::Output

source§

impl BitAnd<&i16> for i16

§

type Output = i16

source§

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

source§

impl BitAnd<&i32> for &i32

§

type Output = i32

source§

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

source§

impl BitAnd<&i32> for Value

§

type Output = i64

source§

fn op_bitand(self, other: &i32) -> Self::Output

source§

impl BitAnd<&i32> for i32

§

type Output = i32

source§

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

source§

impl BitAnd<&i64> for &i64

§

type Output = i64

source§

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

source§

impl BitAnd<&i64> for Value

§

type Output = i64

source§

fn op_bitand(self, other: &i64) -> Self::Output

source§

impl BitAnd<&i64> for i64

§

type Output = i64

source§

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

source§

impl BitAnd<&isize> for &isize

§

type Output = isize

source§

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

source§

impl BitAnd<&isize> for Value

§

type Output = i64

source§

fn op_bitand(self, other: &isize) -> Self::Output

source§

impl BitAnd<&isize> for isize

§

type Output = isize

source§

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

source§

impl BitAnd<&u8> for &u8

§

type Output = u8

source§

fn op_bitand(self, rhs: &u8) -> Self::Output

source§

impl BitAnd<&u8> for Value

§

type Output = u64

source§

fn op_bitand(self, other: &u8) -> Self::Output

source§

impl BitAnd<&u8> for u8

§

type Output = u8

source§

fn op_bitand(self, rhs: &u8) -> Self::Output

source§

impl BitAnd<&u16> for &u16

§

type Output = u16

source§

fn op_bitand(self, rhs: &u16) -> Self::Output

source§

impl BitAnd<&u16> for Value

§

type Output = u64

source§

fn op_bitand(self, other: &u16) -> Self::Output

source§

impl BitAnd<&u16> for u16

§

type Output = u16

source§

fn op_bitand(self, rhs: &u16) -> Self::Output

source§

impl BitAnd<&u32> for &u32

§

type Output = u32

source§

fn op_bitand(self, rhs: &u32) -> Self::Output

source§

impl BitAnd<&u32> for Value

§

type Output = u64

source§

fn op_bitand(self, other: &u32) -> Self::Output

source§

impl BitAnd<&u32> for u32

§

type Output = u32

source§

fn op_bitand(self, rhs: &u32) -> Self::Output

source§

impl BitAnd<&u64> for &u64

§

type Output = u64

source§

fn op_bitand(self, rhs: &u64) -> Self::Output

source§

impl BitAnd<&u64> for Value

§

type Output = u64

source§

fn op_bitand(self, other: &u64) -> Self::Output

source§

impl BitAnd<&u64> for u64

§

type Output = u64

source§

fn op_bitand(self, rhs: &u64) -> Self::Output

source§

impl BitAnd<Value> for &Value

§

type Output = bool

source§

fn op_bitand(self, rhs: Value) -> Self::Output

source§

impl BitAnd<Value> for &i8

§

type Output = i64

source§

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

source§

impl BitAnd<Value> for &i16

§

type Output = i64

source§

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

source§

impl BitAnd<Value> for &i32

§

type Output = i64

source§

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

source§

impl BitAnd<Value> for &i64

§

type Output = i64

source§

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

source§

impl BitAnd<Value> for &isize

§

type Output = i64

source§

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

source§

impl BitAnd<Value> for &u8

§

type Output = u64

source§

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

source§

impl BitAnd<Value> for &u16

§

type Output = u64

source§

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

source§

impl BitAnd<Value> for &u32

§

type Output = u64

source§

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

source§

impl BitAnd<Value> for &u64

§

type Output = u64

source§

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

source§

impl BitAnd<Value> for bool

§

type Output = bool

source§

fn op_bitand(self, rhs: Value) -> Self::Output

source§

impl BitAnd<Value> for i8

§

type Output = i64

source§

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

source§

impl BitAnd<Value> for i16

§

type Output = i64

source§

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

source§

impl BitAnd<Value> for i32

§

type Output = i64

source§

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

source§

impl BitAnd<Value> for i64

§

type Output = i64

source§

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

source§

impl BitAnd<Value> for isize

§

type Output = i64

source§

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

source§

impl BitAnd<Value> for u8

§

type Output = u64

source§

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

source§

impl BitAnd<Value> for u16

§

type Output = u64

source§

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

source§

impl BitAnd<Value> for u32

§

type Output = u64

source§

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

source§

impl BitAnd<Value> for u64

§

type Output = u64

source§

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

source§

impl BitAnd<bool> for &Value

§

type Output = bool

source§

fn op_bitand(self, rhs: bool) -> Self::Output

source§

impl BitAnd<i8> for &i8

§

type Output = i8

source§

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

source§

impl BitAnd<i8> for Value

§

type Output = i64

source§

fn op_bitand(self, other: i8) -> Self::Output

source§

impl BitAnd<i16> for &i16

§

type Output = i16

source§

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

source§

impl BitAnd<i16> for Value

§

type Output = i64

source§

fn op_bitand(self, other: i16) -> Self::Output

source§

impl BitAnd<i32> for &i32

§

type Output = i32

source§

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

source§

impl BitAnd<i32> for Value

§

type Output = i64

source§

fn op_bitand(self, other: i32) -> Self::Output

source§

impl BitAnd<i64> for &i64

§

type Output = i64

source§

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

source§

impl BitAnd<i64> for Value

§

type Output = i64

source§

fn op_bitand(self, other: i64) -> Self::Output

source§

impl BitAnd<isize> for &isize

§

type Output = isize

source§

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

source§

impl BitAnd<isize> for Value

§

type Output = i64

source§

fn op_bitand(self, other: isize) -> Self::Output

source§

impl BitAnd<u8> for &u8

§

type Output = u8

source§

fn op_bitand(self, rhs: u8) -> Self::Output

source§

impl BitAnd<u8> for Value

§

type Output = u64

source§

fn op_bitand(self, other: u8) -> Self::Output

source§

impl BitAnd<u16> for &u16

§

type Output = u16

source§

fn op_bitand(self, rhs: u16) -> Self::Output

source§

impl BitAnd<u16> for Value

§

type Output = u64

source§

fn op_bitand(self, other: u16) -> Self::Output

source§

impl BitAnd<u32> for &u32

§

type Output = u32

source§

fn op_bitand(self, rhs: u32) -> Self::Output

source§

impl BitAnd<u32> for Value

§

type Output = u64

source§

fn op_bitand(self, other: u32) -> Self::Output

source§

impl BitAnd<u64> for &u64

§

type Output = u64

source§

fn op_bitand(self, rhs: u64) -> Self::Output

source§

impl BitAnd<u64> for Value

§

type Output = u64

source§

fn op_bitand(self, other: u64) -> Self::Output

source§

impl<'a> BitAnd<&i8> for &'a Value

§

type Output = i64

source§

fn op_bitand(self, other: &i8) -> Self::Output

source§

impl<'a> BitAnd<&i16> for &'a Value

§

type Output = i64

source§

fn op_bitand(self, other: &i16) -> Self::Output

source§

impl<'a> BitAnd<&i32> for &'a Value

§

type Output = i64

source§

fn op_bitand(self, other: &i32) -> Self::Output

source§

impl<'a> BitAnd<&i64> for &'a Value

§

type Output = i64

source§

fn op_bitand(self, other: &i64) -> Self::Output

source§

impl<'a> BitAnd<&isize> for &'a Value

§

type Output = i64

source§

fn op_bitand(self, other: &isize) -> Self::Output

source§

impl<'a> BitAnd<&u8> for &'a Value

§

type Output = u64

source§

fn op_bitand(self, other: &u8) -> Self::Output

source§

impl<'a> BitAnd<&u16> for &'a Value

§

type Output = u64

source§

fn op_bitand(self, other: &u16) -> Self::Output

source§

impl<'a> BitAnd<&u32> for &'a Value

§

type Output = u64

source§

fn op_bitand(self, other: &u32) -> Self::Output

source§

impl<'a> BitAnd<&u64> for &'a Value

§

type Output = u64

source§

fn op_bitand(self, other: &u64) -> Self::Output

source§

impl<'a> BitAnd<i8> for &'a Value

§

type Output = i64

source§

fn op_bitand(self, other: i8) -> Self::Output

source§

impl<'a> BitAnd<i16> for &'a Value

§

type Output = i64

source§

fn op_bitand(self, other: i16) -> Self::Output

source§

impl<'a> BitAnd<i32> for &'a Value

§

type Output = i64

source§

fn op_bitand(self, other: i32) -> Self::Output

source§

impl<'a> BitAnd<i64> for &'a Value

§

type Output = i64

source§

fn op_bitand(self, other: i64) -> Self::Output

source§

impl<'a> BitAnd<isize> for &'a Value

§

type Output = i64

source§

fn op_bitand(self, other: isize) -> Self::Output

source§

impl<'a> BitAnd<u8> for &'a Value

§

type Output = u64

source§

fn op_bitand(self, other: u8) -> Self::Output

source§

impl<'a> BitAnd<u16> for &'a Value

§

type Output = u64

source§

fn op_bitand(self, other: u16) -> Self::Output

source§

impl<'a> BitAnd<u32> for &'a Value

§

type Output = u64

source§

fn op_bitand(self, other: u32) -> Self::Output

source§

impl<'a> BitAnd<u64> for &'a Value

§

type Output = u64

source§

fn op_bitand(self, other: u64) -> Self::Output

Implementors§