[−][src]Trait quaint::ast::Conjuctive
AND
, OR
and NOT
conjuctive implementations.
Required methods
fn and<E>(self, other: E) -> ConditionTree<'a> where
E: Into<Expression<'a>>,
E: Into<Expression<'a>>,
Builds an AND
condition having self
as the left leaf and other
as the right.
assert_eq!( "foo".equals("bar").and("wtf".less_than(3)), ConditionTree::and("foo".equals("bar"), "wtf".less_than(3)) )
fn or<E>(self, other: E) -> ConditionTree<'a> where
E: Into<Expression<'a>>,
E: Into<Expression<'a>>,
Builds an OR
condition having self
as the left leaf and other
as the right.
assert_eq!( "foo".equals("bar").or("wtf".less_than(3)), ConditionTree::or("foo".equals("bar"), "wtf".less_than(3)) )
fn not(self) -> ConditionTree<'a>
Builds a NOT
condition having self
as the condition.
assert_eq!( "foo".equals("bar").not(), ConditionTree::not("foo".equals("bar")) )
Implementors
impl<'a, T> Conjuctive<'a> for T where
T: Into<Expression<'a>>,
[src]
T: Into<Expression<'a>>,
fn and<E>(self, other: E) -> ConditionTree<'a> where
E: Into<Expression<'a>>,
[src]
E: Into<Expression<'a>>,
fn or<E>(self, other: E) -> ConditionTree<'a> where
E: Into<Expression<'a>>,
[src]
E: Into<Expression<'a>>,