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

And predicates together

Tuple Fields of And

0: Vec<TagPredicate>
Or

Or predicates together

Tuple Fields of Or

0: Vec<TagPredicate>
Not

Inverse a predicate

Tuple Fields of Not

0: Box<TagPredicate>
Group

Match just the group of a tag

Tuple Fields of Group

0: Group
Name

Match just the name of a tag

Tuple Fields of Name

0: String
Tag

Match a tag exactly

Tuple Fields of Tag

0: Tag

Implementations

Create an and predicate from an iterator of predicate items

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.