isRight

returns true when the Right type is stored

bool
isRight
(
T : Either!(Left, Right)
Left
Right
)
()

Examples

isRight is false when the struct is setup with the left type

auto either = Either!(int, bool)(1);

either.isRight.should.equal(false);

isRight is true when the struct is setup with the right type

auto either = Either!(int, bool)(true);

either.isRight.should.equal(true);

Meta