[−][src]Enum quaint::ast::ConditionTree
Tree structures and leaves for condition building.
Variants
And(Box<Expression<'a>>, Box<Expression<'a>>)
(left_expression AND right_expression)
Or(Box<Expression<'a>>, Box<Expression<'a>>)
(left_expression OR right_expression)
Not(Box<Expression<'a>>)
(NOT expression)
Single(Box<Expression<'a>>)
A single expression leaf
A leaf that does nothing to the condition, 1=1
A leaf that cancels the condition, 1=0
Methods
impl<'a> ConditionTree<'a>
[src]
pub fn and<E, J>(left: E, right: J) -> ConditionTree<'a> where
E: Into<Expression<'a>>,
J: Into<Expression<'a>>,
[src]
E: Into<Expression<'a>>,
J: Into<Expression<'a>>,
An AND
statement, is true when both sides are true.
pub fn or<E, J>(left: E, right: J) -> ConditionTree<'a> where
E: Into<Expression<'a>>,
J: Into<Expression<'a>>,
[src]
E: Into<Expression<'a>>,
J: Into<Expression<'a>>,
An OR
statement, is true when one side is true.
pub fn not<E>(left: E) -> ConditionTree<'a> where
E: Into<Expression<'a>>,
[src]
E: Into<Expression<'a>>,
A NOT
statement, is true when the expression is false.
pub fn single<E>(left: E) -> ConditionTree<'a> where
E: Into<Expression<'a>>,
[src]
E: Into<Expression<'a>>,
A single leaf, is true when the expression is true.
pub fn invert_if(self, invert: bool) -> ConditionTree<'a>
[src]
Inverts the entire condition tree if condition is met.
Trait Implementations
impl<'a> Clone for ConditionTree<'a>
[src]
fn clone(&self) -> ConditionTree<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for ConditionTree<'a>
[src]
impl<'a> Default for ConditionTree<'a>
[src]
impl<'a> From<Compare<'a>> for ConditionTree<'a>
[src]
impl<'a> From<ConditionTree<'a>> for Expression<'a>
[src]
fn from(ct: ConditionTree<'a>) -> Self
[src]
impl<'a> From<Select<'a>> for ConditionTree<'a>
[src]
impl<'a> PartialEq<ConditionTree<'a>> for ConditionTree<'a>
[src]
fn eq(&self, other: &ConditionTree<'a>) -> bool
[src]
fn ne(&self, other: &ConditionTree<'a>) -> bool
[src]
impl<'a> StructuralPartialEq for ConditionTree<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ConditionTree<'a>
impl<'a> Send for ConditionTree<'a>
impl<'a> Sync for ConditionTree<'a>
impl<'a> Unpin for ConditionTree<'a>
impl<'a> UnwindSafe for ConditionTree<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,