mentat/pretty/struct.BoxAllocator.html

140 lines
11 KiB
HTML
Raw Permalink Normal View History

2018-08-22 17:04:13 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `BoxAllocator` struct in crate `pretty`.">
<meta name="keywords" content="rust, rustlang, rust-lang, BoxAllocator">
<title>pretty::BoxAllocator - Rust</title>
<link rel="stylesheet" type="text/css" href="../normalize.css">
<link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle">
<link rel="stylesheet" type="text/css" href="../dark.css">
<link rel="stylesheet" type="text/css" href="../main.css" id="themeStyle">
<script src="../storage.js"></script>
</head>
<body class="rustdoc struct">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<div class="sidebar-menu">&#9776;</div>
<p class='location'>Struct BoxAllocator</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-DocAllocator%3C%27a%3E">DocAllocator&lt;&#39;a&gt;</a></div></div><p class='location'><a href='index.html'>pretty</a></p><script>window.sidebarCurrent = {name: 'BoxAllocator', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
</nav>
<div class="theme-picker">
<button id="theme-picker" aria-label="Pick another theme!">
<img src="../brush.svg" width="18" alt="Pick another theme!">
</button>
<div id="theme-choices"></div>
</div>
<script src="../theme.js"></script>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press S to search, ? for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content">
<h1 class='fqn'><span class='in-band'>Struct <a href='index.html'>pretty</a>::<wbr><a class="struct" href=''>BoxAllocator</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/pretty/lib.rs.html#167' title='goto source code'>[src]</a></span></h1>
<pre class='rust struct'>pub struct BoxAllocator;</pre>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<h3 id='impl-DocAllocator%3C%27a%3E' class='impl'><span class='in-band'><code>impl&lt;'a&gt; <a class="trait" href="../pretty/trait.DocAllocator.html" title="trait pretty::DocAllocator">DocAllocator</a>&lt;'a&gt; for <a class="struct" href="../pretty/struct.BoxAllocator.html" title="struct pretty::BoxAllocator">BoxAllocator</a></code><a href='#impl-DocAllocator%3C%27a%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/pretty/lib.rs.html#171-178' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Doc' class="type"><span id='Doc.t' class='invisible'><code>type <a href='../pretty/trait.DocAllocator.html#associatedtype.Doc' class="type">Doc</a> = <a class="struct" href="../pretty/struct.BoxDoc.html" title="struct pretty::BoxDoc">BoxDoc</a>&lt;'a&gt;</code></span></h4>
<h4 id='method.alloc' class="method"><span id='alloc.v' class='invisible'><code>fn <a href='../pretty/trait.DocAllocator.html#tymethod.alloc' class='fnname'>alloc</a>(&amp;'a self, doc: <a class="enum" href="../pretty/enum.Doc.html" title="enum pretty::Doc">Doc</a>&lt;'a, Self::<a class="type" href="../pretty/trait.DocAllocator.html#associatedtype.Doc" title="type pretty::DocAllocator::Doc">Doc</a>&gt;) -&gt; Self::<a class="type" href="../pretty/trait.DocAllocator.html#associatedtype.Doc" title="type pretty::DocAllocator::Doc">Doc</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/pretty/lib.rs.html#175-177' title='goto source code'>[src]</a></span></h4>
<h4 id='method.nil' class="method"><span id='nil.v' class='invisible'><code>fn <a href='../pretty/trait.DocAllocator.html#method.nil' class='fnname'>nil</a>(&amp;'a self) -&gt; <a class="struct" href="../pretty/struct.DocBuilder.html" title="struct pretty::DocBuilder">DocBuilder</a>&lt;'a, Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/pretty/lib.rs.html#64-66' title='goto source code'>[src]</a></span></h4>
<h4 id='method.newline' class="method"><span id='newline.v' class='invisible'><code>fn <a href='../pretty/trait.DocAllocator.html#method.newline' class='fnname'>newline</a>(&amp;'a self) -&gt; <a class="struct" href="../pretty/struct.DocBuilder.html" title="struct pretty::DocBuilder">DocBuilder</a>&lt;'a, Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/pretty/lib.rs.html#69-71' title='goto source code'>[src]</a></span></h4>
<h4 id='method.space' class="method"><span id='space.v' class='invisible'><code>fn <a href='../pretty/trait.DocAllocator.html#method.space' class='fnname'>space</a>(&amp;'a self) -&gt; <a class="struct" href="../pretty/struct.DocBuilder.html" title="struct pretty::DocBuilder">DocBuilder</a>&lt;'a, Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/pretty/lib.rs.html#74-76' title='goto source code'>[src]</a></span></h4>
<h4 id='method.as_string' class="method"><span id='as_string.v' class='invisible'><code>fn <a href='../pretty/trait.DocAllocator.html#method.as_string' class='fnname'>as_string</a>&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a>&gt;(&amp;'a self, t: T) -&gt; <a class="struct" href="../pretty/struct.DocBuilder.html" title="struct pretty::DocBuilder">DocBuilder</a>&lt;'a, Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/pretty/lib.rs.html#79-81' title='goto source code'>[src]</a></span></h4>
<h4 id='method.text' class="method"><span id='text.v' class='invisible'><code>fn <a href='../pretty/trait.DocAllocator.html#method.text' class='fnname'>text</a>&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt;&gt;(&amp;'a self, data: T) -&gt; <a class="struct" href="../pretty/struct.DocBuilder.html" title="struct pretty::DocBuilder">DocBuilder</a>&lt;'a, Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/pretty/lib.rs.html#84-88' title='goto source code'>[src]</a></span></h4>
<h4 id='method.concat' class="method"><span id='concat.v' class='invisible'><code>fn <a href='../pretty/trait.DocAllocator.html#method.concat' class='fnname'>concat</a>&lt;I&gt;(&amp;'a self, docs: I) -&gt; <a class="struct" href="../pretty/struct.DocBuilder.html" title="struct pretty::DocBuilder">DocBuilder</a>&lt;'a, Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.IntoIterator.html" title="trait core::iter::traits::IntoIterator">IntoIterator</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;I::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="../pretty/enum.Doc.html" title="enum pretty::Doc">Doc</a>&lt;'a, Self::<a class="type" href="../pretty/trait.DocAllocator.html#associatedtype.Doc" title="type pretty::DocAllocator::Doc">Doc</a>&gt;&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/pretty/lib.rs.html#91-96' title='goto source code'>[src]</a></span></h4>
</div></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt><kbd>?</kbd></dt>
<dd>Show this help dialog</dd>
<dt><kbd>S</kbd></dt>
<dd>Focus the search field</dd>
<dt><kbd></kbd></dt>
<dd>Move up in search results</dd>
<dt><kbd></kbd></dt>
<dd>Move down in search results</dd>
<dt><kbd></kbd></dt>
<dd>Switch tab</dd>
<dt><kbd>&#9166;</kbd></dt>
<dd>Go to active search result</dd>
<dt><kbd>+</kbd></dt>
<dd>Expand all sections</dd>
<dt><kbd>-</kbd></dt>
<dd>Collapse all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../";
window.currentCrate = "pretty";
</script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>