pub enum FilterExpr {
Show 21 variants
Eq(ExprTerm, ExprTerm),
NotEq(ExprTerm, ExprTerm),
Lt(ExprTerm, ExprTerm),
LtEq(ExprTerm, ExprTerm),
Gt(ExprTerm, ExprTerm),
GtEq(ExprTerm, ExprTerm),
And(Box<FilterExpr>, Box<FilterExpr>),
Or(Box<FilterExpr>, Box<FilterExpr>),
Not(Box<FilterExpr>),
Bound(Var),
Regex(ExprTerm, String, Option<String>),
StartsWith(ExprTerm, String),
EndsWith(ExprTerm, String),
Contains(ExprTerm, String),
IsUri(ExprTerm),
IsLiteral(ExprTerm),
IsBlank(ExprTerm),
In(ExprTerm, Vec<ExprTerm>),
NotIn(ExprTerm, Vec<ExprTerm>),
True,
False,
}Expand description
Filter expression for filtering bindings
Variants§
Eq(ExprTerm, ExprTerm)
Equality
NotEq(ExprTerm, ExprTerm)
Not equal
Lt(ExprTerm, ExprTerm)
Less than
LtEq(ExprTerm, ExprTerm)
Less than or equal
Gt(ExprTerm, ExprTerm)
Greater than
GtEq(ExprTerm, ExprTerm)
Greater than or equal
And(Box<FilterExpr>, Box<FilterExpr>)
Logical AND
Or(Box<FilterExpr>, Box<FilterExpr>)
Logical OR
Not(Box<FilterExpr>)
Logical NOT
Bound(Var)
Bound check
Regex(ExprTerm, String, Option<String>)
Regex match
StartsWith(ExprTerm, String)
String starts with
EndsWith(ExprTerm, String)
String ends with
Contains(ExprTerm, String)
String contains
IsUri(ExprTerm)
Is IRI
IsLiteral(ExprTerm)
Is literal
IsBlank(ExprTerm)
Is blank node
In(ExprTerm, Vec<ExprTerm>)
In list
NotIn(ExprTerm, Vec<ExprTerm>)
Not in list
True
True constant
False
False constant
Implementations§
Source§impl FilterExpr
impl FilterExpr
Sourcepub fn and(left: FilterExpr, right: FilterExpr) -> FilterExpr
pub fn and(left: FilterExpr, right: FilterExpr) -> FilterExpr
Create AND expression
Sourcepub fn or(left: FilterExpr, right: FilterExpr) -> FilterExpr
pub fn or(left: FilterExpr, right: FilterExpr) -> FilterExpr
Create OR expression
Sourcepub fn not(expr: FilterExpr) -> FilterExpr
pub fn not(expr: FilterExpr) -> FilterExpr
Create NOT expression
Trait Implementations§
Source§impl Clone for FilterExpr
impl Clone for FilterExpr
Auto Trait Implementations§
impl Freeze for FilterExpr
impl RefUnwindSafe for FilterExpr
impl Send for FilterExpr
impl Sync for FilterExpr
impl Unpin for FilterExpr
impl UnsafeUnpin for FilterExpr
impl UnwindSafe for FilterExpr
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