either

Undocumented in source.

Members

Aliases

TestEither
alias TestEither = Either!(int, Exception)
Undocumented in source.

Enums

EitherSide
enum EitherSide

Functions

alwaysFalse
bool alwaysFalse(bool )
Undocumented in source. Be warned that the author may not have intended to support it.
alwaysFalseInt
bool alwaysFalseInt(int )
Undocumented in source. Be warned that the author may not have intended to support it.
alwaysTrue
bool alwaysTrue(bool )
Undocumented in source. Be warned that the author may not have intended to support it.
alwaysTrueInt
bool alwaysTrueInt(int )
Undocumented in source. Be warned that the author may not have intended to support it.
bind
Either!(Any, T) bind(T value)
Either!(Left, Right) bind(T value)
auto bind(T value)
Either!(Left, Right) bind(Either!(Left, Right) value)

Wraps a value as an Either monad

canCheck
bool canCheck()
isCallableWith
bool isCallableWith()
returnsAnyOf
bool returnsAnyOf()

Check if the matcher returns any of the provided return types

Structs

Any
struct Any
Either
struct Either(Left, Right)

The Either type represents values with two possibilities: a value of type Either a b is either Left a or Right b.

Templates

hasVoidReturn
template hasVoidReturn(Func)

Returns true if the function returns void

isEitherStruct
template isEitherStruct(T)

Returns true if the given struct can be use as an Either struct

Meta