Flexweave
API Reference

Tag

Grouped tag paths, tag sets, and tag queries.

Public exports:

  • Tag<Atom>
  • TagSet<Atom>
  • TagSetQuery<Atom>
  • TagCollection

Tag stores one grouped path of atoms. It supports atom membership, prefix matching, and all-atoms-in-one-path checks.

Tag<Atom>

APIBehavior
newCreates a tag from a grouped path of atoms.
atomsReturns the atoms in this one grouped path.
has_atomReturns whether this path contains an atom.
starts_withReturns whether this path starts with a prefix tag.
has_all_atomsReturns whether all requested atoms appear in this path.

TagSet<Atom>

TagSet stores multiple grouped paths. It supports exact tag matching, prefix matching, atom membership, all-atoms-in-one-path checks, and TagSetQuery.

APIBehavior
newCreates a set from grouped tag paths.
itemsReturns grouped paths in insertion order.
hasExact path match.
has_atomAtom membership across any path.
has_prefixPrefix match across any path.
has_tag_with_all_atomsAll requested atoms must occur in one grouped path.
matchesEvaluates TagSetQuery exact-path rules.

TagSetQuery contains all, any, and none exact-path requirements.

matches fails when any none tag exists or any all tag is absent. It passes the any clause when any is empty or at least one any tag exists.

TagCollection is the trait consumed by ability and effect stores.

On this page