LogicalOp

Trait LogicalOp 

Source
pub trait LogicalOp<T: Any> {
    // Required methods
    fn and<U: Logical>(self, other: U) -> FnLogical2<T, U>;
    fn or<U: Logical>(self, other: U) -> FnLogical2<T, U>;
    fn xor<U: Logical>(self, other: U) -> FnLogical2<T, U>;
}
Expand description

Operations on boolean-like values.

Required Methods§

Source

fn and<U: Logical>(self, other: U) -> FnLogical2<T, U>

and

Source

fn or<U: Logical>(self, other: U) -> FnLogical2<T, U>

or

Source

fn xor<U: Logical>(self, other: U) -> FnLogical2<T, U>

xor

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.

Implementors§

Source§

impl<T: Logical> LogicalOp<T> for T