Enum tbf::TagPredicate [−][src]
pub enum TagPredicate {
And(Vec<TagPredicate>),
Or(Vec<TagPredicate>),
Not(Box<TagPredicate>),
Group(Group),
Name(String),
Tag(Tag),
}Expand description
Complex support for matching binary expressions against tags
Variants
And predicates together
Tuple Fields of And
0: Vec<TagPredicate>Or predicates together
Tuple Fields of Or
0: Vec<TagPredicate>Inverse a predicate
Tuple Fields of Not
0: Box<TagPredicate>Match just the group of a tag
Tuple Fields of Group
0: GroupMatch just the name of a tag
Tuple Fields of Name
0: StringMatch a tag exactly
Tuple Fields of Tag
0: TagImplementations
pub fn and<T, I>(preds: I) -> TagPredicate where
T: Into<TagPredicate>,
I: IntoIterator<Item = T>,
pub fn and<T, I>(preds: I) -> TagPredicate where
T: Into<TagPredicate>,
I: IntoIterator<Item = T>,
Create an and predicate from an iterator of predicate items
pub fn or<T, I>(preds: I) -> TagPredicate where
T: Into<TagPredicate>,
I: IntoIterator<Item = T>,
pub fn or<T, I>(preds: I) -> TagPredicate where
T: Into<TagPredicate>,
I: IntoIterator<Item = T>,
Create an or predicate from an iterator of predicate items
Create a not predicate from some other predicate item
Create a predicate for a group
Create a predicate for a name
Create a predicate to match a tag exactly
Trait Implementations
Performs the conversion.
Match this item against an iterator of tags