Tag

Any haystack value type.

Constructors

this
this(Tag tag)
Undocumented in source.
this
this(T t)
Undocumented in source.
this
this(string val)

Construct a Tag from a string

this
this(double val)

Construct a Tag from a double

this
this(bool val)

Construct a Tag from a bool

Members

Aliases

DateTime
alias DateTime = SysTime
Undocumented in source.

Enums

Type
enum Type

This tag allowed types

Functions

get
T get()

Gets the value for the type T Returns T.init if there is not value or the value is not of type T

hasValue
bool hasValue()

Returns true if there is a value of type T

hasValue
bool hasValue()

Returns true if there is a value of any type

opAssign
Tag opAssign(Tag val)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
Tag opAssign(T val)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
Tag opAssign(string val)

Assigns a string to a Tag

opAssign
Tag opAssign(double val)

Asigns a double to a Tag

opAssign
Tag opAssign(bool val)

Asigns a bool to a Tag

opCmp
int opCmp(const(Tag) other)
Undocumented in source. Be warned that the author may not have intended to support it.
opDispatch
auto opDispatch(V vals)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(const(Tag) other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(const(T) value)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(double value)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(string value)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(const(List) value)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(const(Dict) value)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
Tag opIndex(size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
Tag opIndex(string index)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()

Returns the string representation of the current value

Mixins

__anonymous
mixin SumType!Type
Undocumented in source.

Meta