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<&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 &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<bool> for &Value

§

type Output = bool

source§

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

source§

impl BitAnd<Value> for Value

§

type Output = bool

source§

fn op_bitand(self, rhs: Self) -> 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

Implementors§