Trait BitOr

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

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

Required Associated Types§

Source

type Output

The resulting type after applying the | operator.

Required Methods§

Source

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

Performs the | operation.

§Examples
assert_eq!(true | false, true);
assert_eq!(false | false, false);
assert_eq!(5u8 | 1u8, 5);
assert_eq!(5u8 | 2u8, 7);

Implementations on Foreign Types§

Source§

impl BitOr for Bson

Source§

type Output = bool

Source§

fn op_bitor(self, rhs: Bson) -> <Bson as BitOr>::Output

Source§

impl BitOr<&&Bson> for &Bson

Source§

type Output = bool

Source§

fn op_bitor(self, rhs: &&Bson) -> <&Bson as BitOr<&&Bson>>::Output

Source§

impl BitOr<&&Bson> for Bson

Source§

type Output = bool

Source§

fn op_bitor(self, rhs: &&Bson) -> <Bson as BitOr<&&Bson>>::Output

Source§

impl BitOr<&&Bson> for bool

Source§

type Output = bool

Source§

fn op_bitor(self, rhs: &&Bson) -> <bool as BitOr<&&Bson>>::Output

Source§

impl BitOr<&Bson> for &Bson

Source§

type Output = bool

Source§

fn op_bitor(self, rhs: &Bson) -> <&Bson as BitOr<&Bson>>::Output

Source§

impl BitOr<&Bson> for Bson

Source§

type Output = bool

Source§

fn op_bitor(self, rhs: &Bson) -> <Bson as BitOr<&Bson>>::Output

Source§

impl BitOr<&Bson> for bool

Source§

type Output = bool

Source§

fn op_bitor(self, rhs: &Bson) -> <bool as BitOr<&Bson>>::Output

Source§

impl BitOr<Bson> for &Bson

Source§

type Output = bool

Source§

fn op_bitor(self, rhs: Bson) -> <&Bson as BitOr<Bson>>::Output

Source§

impl BitOr<Bson> for bool

Source§

type Output = bool

Source§

fn op_bitor(self, rhs: Bson) -> <bool as BitOr<Bson>>::Output

Source§

impl BitOr<bool> for &Bson

Source§

type Output = bool

Source§

fn op_bitor(self, rhs: bool) -> <&Bson as BitOr<bool>>::Output

Implementors§