Trait BitAnd

Source
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<&&Bson> for bool

Source§

type Output = bool

Source§

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

Source§

impl BitAnd<&Bson> for bool

Source§

type Output = bool

Source§

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

Source§

impl BitAnd<Bson> for bool

Source§

type Output = bool

Source§

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

Implementors§