Struct Filter
pub struct Filter {
pub expr: Option<Expr>,
}Fields§
§expr: Option<Expr>Implementations§
§impl Filter
impl Filter
pub fn new(expr: impl Into<Expr>) -> Filter
pub fn and(lhs: impl Into<Filter>, rhs: impl Into<Filter>) -> Filter
pub fn as_expr(&self) -> &Expr
pub fn as_expr(&self) -> &Expr
Returns the filter expression.
When no expression is set, returns true, which matches all rows.
pub fn into_expr(self) -> Expr
pub fn is_false(&self) -> bool
pub fn set(&mut self, expr: impl Into<Expr>)
pub fn add_filter(&mut self, filter: impl Into<Filter>)
Trait Implementations§
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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