D-Programming-Language/phobos — pull request #477 by adamdruppe (2012-03-05 16:15:30+00:00)
Title: add a simple NotNull struct

I've talked about implementing these a lot of times on the newsgroup, but I don't see one in Phobos yet!

This is my latest idea on how to implement a NotNull type with tests and documentation, added
to std.typecons (right below Nullable).

I haven't actually used any NotNull in practice, but from the attached tests, it looks like it will work well - hence, the pull request.

I'm open to any comments, however.