handy_httpd.components.optional

Module that defines an Optional type, which is a simplified version of Phobos' Nullable, that also supports mapping the underlying data.

Members

Functions

mapIfPresent
auto mapIfPresent(Optional!T opt)

Maps the value of a given optional to another type using a given function.

Structs

Optional
struct Optional(T)

A simple wrapper around a value to make it optionally present.