haystack.util.misc

Haystack misc utils.

Members

Enums

isCharInputRange
eponymoustemplate isCharInputRange(Range)
Undocumented in source.

Mixin templates

SumType
mixintemplate SumType(alias Type)

Implements a safe discriminating union, aka sum type. Accepts the type Type as an enum listing the supporting types. Each enum filed name is considered as an alias for an actual type.

Properties

empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
front
char front [@property getter]

//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

popFront
void popFront [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

LookAhead
struct LookAhead(Range)

A char range that allows look ahead buffering and can also collect a buffer of items

Own
struct Own(T)

Owns the type T memory ensuring that it is not copyable and that T constructed memory is freed and T is destroyed at end of scope.

Meta

Authors

Radu Racariu