Either

A type that contains either an element of A, or an element of B, but not both. You can access the given names directly, so for example:

auto s = Either!(bool, "first", float, "second")(true);

will allow you to call s.first, s.second, s.hasFirst, and s.hasSecond.

Constructors

this
this(A value)
Undocumented in source.
this
this(B value)
Undocumented in source.

Members

Aliases

firstType
alias firstType = A
Undocumented in source.
secondType
alias secondType = B
Undocumented in source.

Functions

has
bool has()
Undocumented in source. Be warned that the author may not have intended to support it.
map
T map(T delegate(A) dgA, T delegate(B) dgB)
Undocumented in source. Be warned that the author may not have intended to support it.
opDispatch
A opDispatch()
Undocumented in source. Be warned that the author may not have intended to support it.
opDispatch
B opDispatch()
Undocumented in source. Be warned that the author may not have intended to support it.
opDispatch
bool opDispatch()
Undocumented in source. Be warned that the author may not have intended to support it.
opDispatch
bool opDispatch()
Undocumented in source. Be warned that the author may not have intended to support it.

Unions

U
union U
Undocumented in source.

Meta