pub struct OrFilterBuilder { /* private fields */ }Expand description
Builder for constructing OR filters with pre-allocated capacity.
This avoids vector reallocations when the number of conditions is known upfront.
Implementations§
Source§impl OrFilterBuilder
impl OrFilterBuilder
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 OR 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 OrFilterBuilder
impl Clone for OrFilterBuilder
Source§fn clone(&self) -> OrFilterBuilder
fn clone(&self) -> OrFilterBuilder
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 OrFilterBuilder
impl Debug for OrFilterBuilder
Auto Trait Implementations§
impl Freeze for OrFilterBuilder
impl RefUnwindSafe for OrFilterBuilder
impl Send for OrFilterBuilder
impl Sync for OrFilterBuilder
impl Unpin for OrFilterBuilder
impl UnwindSafe for OrFilterBuilder
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