website/docs/ddoc/primitives/handy_http_primitives.optio...

36 lines
3.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>handy_http_primitives.optional (handy_http_primitives.optional)</title>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link href="style.css" rel="stylesheet" />
<script src="script.js" type="text/javascript"></script>
<link href="search-results.html" rel="prefetch" />
</head>
<body>
<div id="page-header">
<div id="logotype">
<span>Documentation</span>
<nav>
<a href="http://dlang.org/">Dlang.org</a>
</nav>
</div>
<form action="search-docs.html" id="search">
<input name="searchTerm" placeholder="Find a symbol name..." type="search" />
<input type="submit" value="Go" />
</form>
</div>
<div id="page-body">
<div id="page-content">
<h1>handy_http_primitives.optional</h1><div class="breadcrumbs"><a class="breadcrumb" href="handy_http_primitives.html">handy_http_primitives</a> </div><div><div class="documentation-comment synopsis"><div><p>Module that defines an <tt class="inline-code">Optional</tt> type, which is a simplified version of
Phobos' Nullable, that also supports mapping the underlying data.</p></div></div></div><div class="annotated-prototype"></div><h2 id="members"><a class="header-anchor" href="#members">Members</a></h2><h3 class="member-list-header hide-from-toc" id="function"><a class="header-anchor" href="#function">Functions</a></h3><dl class="member-list native"><dt><a href="handy_http_primitives.optional.mapIfPresent.html">mapIfPresent</a><div class="simplified-prototype" style="max-width: 37ch;"><span class="lang-feature">auto</span> <span class="name">mapIfPresent</span>(Optional!T opt)</div></dt><dd><div><p>Maps the value of a given optional to another type using a given function.</p></div></dd></dl><h3 class="member-list-header hide-from-toc" id="struct"><a class="header-anchor" href="#struct">Structs</a></h3><dl class="member-list native"><dt><a href="handy_http_primitives.optional.Optional.html">Optional</a><div class="simplified-prototype" style="max-width: 19ch;"><span class="builtin-type">struct</span> <span class="name">Optional</span><span class="template-params">(T)</span></div></dt><dd><div><p>A simple wrapper around a value to make it optionally present.</p></div></dd></dl><div></div></div>
<div id="page-nav"><a class="parent" href="handy_http_primitives.html">handy_http_primitives</a>
<span class="type-separator">modules</span><ul><li><a class="module" href="handy_http_primitives.address.html">address</a></li><li><a class="module" href="handy_http_primitives.builder.html">builder</a></li><li><a class="module" href="handy_http_primitives.handler.html">handler</a></li><li><a class="module" href="handy_http_primitives.multivalue_map.html">multivalue_map</a></li><li><a class="module current" href="handy_http_primitives.optional.html">optional</a></li><li><a class="module" href="handy_http_primitives.request.html">request</a></li><li><a class="module" href="handy_http_primitives.response.html">response</a></li><li><a class="module" href="handy_http_primitives.testing.html">testing</a></li></ul></div>
</div>
<div id="page-footer">Page generated by <a href="https://github.com/adamdruppe/adrdox">adrdox</a></div>
</body>
</html>