- 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.
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.