pub struct Filter(/* private fields */);
Expand description
Implementations§
Source§impl Filter
impl Filter
Sourcepub fn new<V: Into<String>>(tag: Tag, operator: Operator, value: V) -> Self
pub fn new<V: Into<String>>(tag: Tag, operator: Operator, value: V) -> Self
Create a filter which selects on the given tag
, using the given operator
, for the
given value
.
See also Tag::any()
.
Sourcepub fn tag<V: Into<String>>(tag: Tag, value: V) -> Self
pub fn tag<V: Into<String>>(tag: Tag, value: V) -> Self
Create a filter which checks where the given tag
is equal to the given value
.
Shorthand method that always checks for equality.
Sourcepub fn tag_exists(tag: Tag) -> Self
pub fn tag_exists(tag: Tag) -> Self
Create a filter which checks for the existence of tag
(with any value).
Sourcepub fn tag_absent(tag: Tag) -> Self
pub fn tag_absent(tag: Tag) -> Self
Create a filter which checks for the absence of tag
.
Trait Implementations§
impl Eq for Filter
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