pub enum Predicate {
Eq(Expr, Expr),
Ne(Expr, Expr),
Gt(Expr, Expr),
Gte(Expr, Expr),
Lt(Expr, Expr),
Lte(Expr, Expr),
Like(Expr, Expr),
IsNull(Expr),
IsNotNull(Expr),
And(Vec<Predicate>),
Or(Vec<Predicate>),
Not(Box<Predicate>),
}Variants§
Eq(Expr, Expr)
Ne(Expr, Expr)
Gt(Expr, Expr)
Gte(Expr, Expr)
Lt(Expr, Expr)
Lte(Expr, Expr)
Like(Expr, Expr)
IsNull(Expr)
IsNotNull(Expr)
And(Vec<Predicate>)
Or(Vec<Predicate>)
Not(Box<Predicate>)
Implementations§
Source§impl Predicate
impl Predicate
pub const fn eq(left: Expr, right: Expr) -> Self
pub const fn ne(left: Expr, right: Expr) -> Self
pub const fn gt(left: Expr, right: Expr) -> Self
pub const fn gte(left: Expr, right: Expr) -> Self
pub const fn lt(left: Expr, right: Expr) -> Self
pub const fn lte(left: Expr, right: Expr) -> Self
pub const fn like(left: Expr, right: Expr) -> Self
pub const fn is_null(expr: Expr) -> Self
pub const fn is_not_null(expr: Expr) -> Self
pub fn and(predicates: Vec<Predicate>) -> Self
pub fn or(predicates: Vec<Predicate>) -> Self
pub fn negate(predicate: Predicate) -> Self
Trait Implementations§
impl StructuralPartialEq for Predicate
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnsafeUnpin for Predicate
impl UnwindSafe for Predicate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more