pub struct AndFilterBuilder { /* private fields */ }Expand description
Builder for constructing AND filters with pre-allocated capacity.
This avoids vector reallocations when the number of conditions is known upfront.
Implementations§
Source§impl AndFilterBuilder
impl AndFilterBuilder
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create a new builder with the specified capacity.
Sourcepub fn extend(self, filters: impl IntoIterator<Item = Filter>) -> Self
pub fn extend(self, filters: impl IntoIterator<Item = Filter>) -> Self
Add multiple filters to the AND condition.
Sourcepub fn push_if_some<F>(self, opt: Option<F>) -> Self
pub fn push_if_some<F>(self, opt: Option<F>) -> Self
Add a filter conditionally, evaluating the closure only if condition is true.
Trait Implementations§
Source§impl Clone for AndFilterBuilder
impl Clone for AndFilterBuilder
Source§fn clone(&self) -> AndFilterBuilder
fn clone(&self) -> AndFilterBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AndFilterBuilder
impl Debug for AndFilterBuilder
Auto Trait Implementations§
impl Freeze for AndFilterBuilder
impl RefUnwindSafe for AndFilterBuilder
impl Send for AndFilterBuilder
impl Sync for AndFilterBuilder
impl Unpin for AndFilterBuilder
impl UnwindSafe for AndFilterBuilder
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