pub struct FilterGroups(/* private fields */);Expand description
A FilterGroups is a vector of FilterGroup, and each groups are intended to be OR between them, and inside the group, that will be the And
Implementations§
Source§impl FilterGroups
impl FilterGroups
Sourcepub fn add_group(&mut self, group: Vec<FilterNode>) -> &mut Self
pub fn add_group(&mut self, group: Vec<FilterNode>) -> &mut Self
Add a new or group (Vec<FilterNode>).
It will be OR with its peer groups, and the content of the vector should interpreted as AND.
pub fn groups(&self) -> &Vec<FilterGroup>
pub fn into_vec(self) -> Vec<FilterGroup>
Trait Implementations§
Source§impl Clone for FilterGroups
impl Clone for FilterGroups
Source§fn clone(&self) -> FilterGroups
fn clone(&self) -> FilterGroups
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 FilterGroups
impl Debug for FilterGroups
Source§impl From<FilterGroup> for FilterGroups
impl From<FilterGroup> for FilterGroups
Source§fn from(val: FilterGroup) -> Self
fn from(val: FilterGroup) -> Self
Converts to this type from the input type.
Source§impl From<FilterNode> for FilterGroups
Create a FilterGroups from a single FilterNode
impl From<FilterNode> for FilterGroups
Create a FilterGroups from a single FilterNode
Source§fn from(val: FilterNode) -> Self
fn from(val: FilterNode) -> Self
Converts to this type from the input type.
Source§impl<F> From<Vec<F>> for FilterGroupswhere
F: IntoFilterNodes,
impl<F> From<Vec<F>> for FilterGroupswhere
F: IntoFilterNodes,
Source§impl From<Vec<FilterNode>> for FilterGroups
Create a FilterGroups of single FilterNode vector (group of one)
impl From<Vec<FilterNode>> for FilterGroups
Create a FilterGroups of single FilterNode vector (group of one)
Source§fn from(val: Vec<FilterNode>) -> Self
fn from(val: Vec<FilterNode>) -> Self
Converts to this type from the input type.
Source§impl From<Vec<Vec<FilterNode>>> for FilterGroups
Create a FilterGroups from a vec or vec of filternode
impl From<Vec<Vec<FilterNode>>> for FilterGroups
Create a FilterGroups from a vec or vec of filternode
Auto Trait Implementations§
impl Freeze for FilterGroups
impl RefUnwindSafe for FilterGroups
impl Send for FilterGroups
impl Sync for FilterGroups
impl Unpin for FilterGroups
impl UnwindSafe for FilterGroups
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