Trait Conjunctive

Source
pub trait Conjunctive<'a> {
    // Required methods
    fn and<E>(self, other: E) -> ConditionTree<'a>
       where E: Into<Expression<'a>>;
    fn or<E>(self, other: E) -> ConditionTree<'a>
       where E: Into<Expression<'a>>;
    fn not(self) -> ConditionTree<'a>;
}
Expand description

AND, OR and NOT conjunctive implementations.

Required Methods§

Source

fn and<E>(self, other: E) -> ConditionTree<'a>
where E: Into<Expression<'a>>,

Builds an AND condition having self as the left leaf and other as the right.

Source

fn or<E>(self, other: E) -> ConditionTree<'a>
where E: Into<Expression<'a>>,

Builds an OR condition having self as the left leaf and other as the right.

Source

fn not(self) -> ConditionTree<'a>

Builds a NOT condition having self as the condition.

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<'a, T> Conjunctive<'a> for T
where T: Into<Expression<'a>>,