BitOr

Trait BitOr 

Source
pub trait BitOr: Operable {
    type Operand;
    type Output;

    // Required method
    fn or(self, target_right: Self::Operand) -> Self::Output;
}
Expand description

The Or operation.

Required Associated Types§

Source

type Operand

The type of the right operand.

Source

type Output

The output type.

Required Methods§

Source

fn or(self, target_right: Self::Operand) -> Self::Output

Performs the Or operation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BitOr for i8

Source§

type Operand = i8

Source§

type Output = i8

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Source§

impl BitOr for i16

Source§

type Operand = i16

Source§

type Output = i16

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Source§

impl BitOr for i32

Source§

type Operand = i32

Source§

type Output = i32

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Source§

impl BitOr for i64

Source§

type Operand = i64

Source§

type Output = i64

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Source§

impl BitOr for i128

Source§

type Operand = i128

Source§

type Output = i128

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Source§

impl BitOr for isize

Source§

type Operand = isize

Source§

type Output = isize

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Source§

impl BitOr for u8

Source§

type Operand = u8

Source§

type Output = u8

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Source§

impl BitOr for u16

Source§

type Operand = u16

Source§

type Output = u16

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Source§

impl BitOr for u32

Source§

type Operand = u32

Source§

type Output = u32

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Source§

impl BitOr for u64

Source§

type Operand = u64

Source§

type Output = u64

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Source§

impl BitOr for u128

Source§

type Operand = u128

Source§

type Output = u128

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Source§

impl BitOr for usize

Source§

type Operand = usize

Source§

type Output = usize

Source§

fn or(self, target_right: Self::Operand) -> Self::Output

Implementors§