Skip to main content

BitOrLogic

Trait BitOrLogic 

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

    // Required method
    fn bitor_logic(self, other: Rhs) -> Self::Output;
}
Expand description

Trait for bitwise OR (|) in logic code.

Required Associated Types§

Required Methods§

Source

fn bitor_logic(self, other: Rhs) -> Self::Output

logic ⚠

requires

false

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BitOrLogic for bool

Source§

fn bitor_logic(self, other: bool) -> Self::Output

logic(open, inline)

self || other

Source§

type Output = bool

Source§

impl BitOrLogic for i8

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = i8

Source§

impl BitOrLogic for i16

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = i16

Source§

impl BitOrLogic for i32

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = i32

Source§

impl BitOrLogic for i64

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = i64

Source§

impl BitOrLogic for i128

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = i128

Source§

impl BitOrLogic for isize

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = isize

Source§

impl BitOrLogic for u8

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = u8

Source§

impl BitOrLogic for u16

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = u16

Source§

impl BitOrLogic for u32

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = u32

Source§

impl BitOrLogic for u64

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = u64

Source§

impl BitOrLogic for u128

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = u128

Source§

impl BitOrLogic for usize

Source§

fn bitor_logic(self, other: Self) -> Self

logic ⚠

Source§

type Output = usize

Implementors§