Skip to main content

Logical

Trait Logical 

Source
pub trait Logical: Expression<Output = bool> {
    // Provided methods
    fn and<R: Expression<Output = bool>>(self, rhs: R) -> AndExpr<Self, R> { ... }
    fn or<R: Expression<Output = bool>>(self, rhs: R) -> OrExpr<Self, R> { ... }
    fn not(self) -> NotExpr<Self> { ... }
}
Expand description

Trait for logical operations

Provided Methods§

Source

fn and<R: Expression<Output = bool>>(self, rhs: R) -> AndExpr<Self, R>

Source

fn or<R: Expression<Output = bool>>(self, rhs: R) -> OrExpr<Self, R>

Source

fn not(self) -> NotExpr<Self>

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<E: Expression<Output = bool>> Logical for E