pub trait BitAnd<Rhs = Self> { type Output; // Required method fn op_bitand(self, rhs: Rhs) -> Self::Output; }
The resulting type after applying the & operator.
&
Performs the & operation.
assert_eq!(true & false, false); assert_eq!(true & true, true); assert_eq!(5u8 & 1u8, 1); assert_eq!(5u8 & 2u8, 0);