Types
DirectiveSet[T] = ref object
- All possible directives
Procs
proc `$`[T](directives: DirectiveSet[T]): string
- Returns the name of this query set
proc directives[T](directives: DirectiveSet[T]): seq[T]
- Produce all directives
proc nameOf[T](directives: DirectiveSet[T]; value: T): string
- Returns the name of a directive. Every name is built with a prefix and a suffix, so an empty string can only mean the lookup missed
proc newDirectiveSet[T](prefix: string; values: openArray[T]): DirectiveSet[T]
- Create a set of all directives in a set of systems
proc symbol[T](directives: DirectiveSet[T]): string
- Returns the name of this query set
Iterators
iterator pairs[T](directives: DirectiveSet[T]): tuple[name: string, value: T]
- Produce all directives and their property names