pub struct FilterExpr { /* private fields */ }Expand description
The filter expression.
Implementations§
Source§impl FilterExpr
impl FilterExpr
Sourcepub fn parse(expr: &str) -> Result<Self, Error>
pub fn parse(expr: &str) -> Result<Self, Error>
Parse the filter expression.
use filter_expr::FilterExpr;
let filter_expr = FilterExpr::parse("name = 'John' AND age > 18").unwrap();Sourcepub fn new(expr: Option<Expr>) -> Self
pub fn new(expr: Option<Expr>) -> Self
Create a new filter expression with the given expression.
Auto Trait Implementations§
impl Freeze for FilterExpr
impl RefUnwindSafe for FilterExpr
impl Send for FilterExpr
impl Sync for FilterExpr
impl Unpin 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