mentat/bytes/buf/struct.Chain.html
2018-08-22 17:04:13 +00:00

357 lines
No EOL
91 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 `Chain` struct in crate `bytes`.">
<meta name="keywords" content="rust, rustlang, rust-lang, Chain">
<title>bytes::buf::Chain - 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 Chain</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a><a href="#method.first_ref">first_ref</a><a href="#method.first_mut">first_mut</a><a href="#method.last_ref">last_ref</a><a href="#method.last_mut">last_mut</a><a href="#method.into_inner">into_inner</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Buf">Buf</a><a href="#impl-BufMut">BufMut</a></div></div><p class='location'><a href='../index.html'>bytes</a>::<wbr><a href='index.html'>buf</a></p><script>window.sidebarCurrent = {name: 'Chain', 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'>bytes</a>::<wbr><a href='index.html'>buf</a>::<wbr><a class="struct" href=''>Chain</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/bytes/buf/chain.rs.html#30-33' title='goto source code'>[src]</a></span></h1>
<pre class='rust struct'>pub struct Chain&lt;T, U&gt; { /* fields omitted */ }</pre><div class='docblock'><p>A <code>Chain</code> sequences two buffers.</p>
<p><code>Chain</code> is an adapter that links two underlying buffers and provides a
continous view across both buffers. It is able to sequence either immutable
buffers (<a href="trait.Buf.html"><code>Buf</code></a> values) or mutable buffers (<a href="trait.BufMut.html"><code>BufMut</code></a> values).</p>
<p>This struct is generally created by calling <a href="trait.Buf.html#method.chain"><code>Buf::chain</code></a>. Please see that
function's documentation for more detail.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">bytes</span>::{<span class="ident">Bytes</span>, <span class="ident">Buf</span>, <span class="ident">IntoBuf</span>};
<span class="kw">use</span> <span class="ident">bytes</span>::<span class="ident">buf</span>::<span class="ident">Chain</span>;
<span class="kw">let</span> <span class="ident">buf</span> <span class="op">=</span> <span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;hello &quot;</span>[..]).<span class="ident">into_buf</span>()
.<span class="ident">chain</span>(<span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;world&quot;</span>[..]));
<span class="kw">let</span> <span class="ident">full</span>: <span class="ident">Bytes</span> <span class="op">=</span> <span class="ident">buf</span>.<span class="ident">collect</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">full</span>[..], <span class="string">b&quot;hello world&quot;</span>[..]);</pre>
</div>
<h2 id='methods' class='small-section-header'>
Methods<a href='#methods' class='anchor'></a>
</h2>
<h3 id='impl' class='impl'><span class='in-band'><code>impl&lt;T, U&gt; <a class="struct" href="../../bytes/buf/struct.Chain.html" title="struct bytes::buf::Chain">Chain</a>&lt;T, U&gt;</code><a href='#impl' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#35-144' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><code>pub fn <a href='#method.new' class='fnname'>new</a>(a: T, b: U) -&gt; <a class="struct" href="../../bytes/buf/struct.Chain.html" title="struct bytes::buf::Chain">Chain</a>&lt;T, U&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#50-55' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Creates a new <code>Chain</code> sequencing the provided values.</p>
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">bytes</span>::<span class="ident">BytesMut</span>;
<span class="kw">use</span> <span class="ident">bytes</span>::<span class="ident">buf</span>::<span class="ident">Chain</span>;
<span class="kw">let</span> <span class="ident">buf</span> <span class="op">=</span> <span class="ident">Chain</span>::<span class="ident">new</span>(
<span class="ident">BytesMut</span>::<span class="ident">with_capacity</span>(<span class="number">1024</span>),
<span class="ident">BytesMut</span>::<span class="ident">with_capacity</span>(<span class="number">1024</span>));
<span class="comment">// Use the chained buffer</span></pre>
</div><h4 id='method.first_ref' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</h3><code class="content"><span class="where fmt-newline">impl&lt;'a, R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, W&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>I <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><span id='first_ref.v' class='invisible'><code>pub fn <a href='#method.first_ref' class='fnname'>first_ref</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#69-71' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a reference to the first underlying <code>Buf</code>.</p>
<h1 id="examples-2" class="section-header"><a href="#examples-2">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">bytes</span>::{<span class="ident">Bytes</span>, <span class="ident">Buf</span>, <span class="ident">IntoBuf</span>};
<span class="kw">let</span> <span class="ident">buf</span> <span class="op">=</span> <span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;hello&quot;</span>[..]).<span class="ident">into_buf</span>()
.<span class="ident">chain</span>(<span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;world&quot;</span>[..]));
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">buf</span>.<span class="ident">first_ref</span>().<span class="ident">get_ref</span>()[..], <span class="string">b&quot;hello&quot;</span>[..]);</pre>
</div><h4 id='method.first_mut' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</h3><code class="content"><span class="where fmt-newline">impl&lt;'a, R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, W&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>I <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><span id='first_mut.v' class='invisible'><code>pub fn <a href='#method.first_mut' class='fnname'>first_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#88-90' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a mutable reference to the first underlying <code>Buf</code>.</p>
<h1 id="examples-3" class="section-header"><a href="#examples-3">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">bytes</span>::{<span class="ident">Bytes</span>, <span class="ident">Buf</span>, <span class="ident">IntoBuf</span>};
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">buf</span> <span class="op">=</span> <span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;hello &quot;</span>[..]).<span class="ident">into_buf</span>()
.<span class="ident">chain</span>(<span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;world&quot;</span>[..]));
<span class="ident">buf</span>.<span class="ident">first_mut</span>().<span class="ident">set_position</span>(<span class="number">1</span>);
<span class="kw">let</span> <span class="ident">full</span>: <span class="ident">Bytes</span> <span class="op">=</span> <span class="ident">buf</span>.<span class="ident">collect</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">full</span>[..], <span class="string">b&quot;ello world&quot;</span>[..]);</pre>
</div><h4 id='method.last_ref' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</h3><code class="content"><span class="where fmt-newline">impl&lt;'a, R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, W&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>I <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><span id='last_ref.v' class='invisible'><code>pub fn <a href='#method.last_ref' class='fnname'>last_ref</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>U</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#104-106' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a reference to the last underlying <code>Buf</code>.</p>
<h1 id="examples-4" class="section-header"><a href="#examples-4">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">bytes</span>::{<span class="ident">Bytes</span>, <span class="ident">Buf</span>, <span class="ident">IntoBuf</span>};
<span class="kw">let</span> <span class="ident">buf</span> <span class="op">=</span> <span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;hello&quot;</span>[..]).<span class="ident">into_buf</span>()
.<span class="ident">chain</span>(<span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;world&quot;</span>[..]));
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">buf</span>.<span class="ident">last_ref</span>().<span class="ident">get_ref</span>()[..], <span class="string">b&quot;world&quot;</span>[..]);</pre>
</div><h4 id='method.last_mut' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</h3><code class="content"><span class="where fmt-newline">impl&lt;'a, R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, W&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>I <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><span id='last_mut.v' class='invisible'><code>pub fn <a href='#method.last_mut' class='fnname'>last_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>U</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#123-125' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a mutable reference to the last underlying <code>Buf</code>.</p>
<h1 id="examples-5" class="section-header"><a href="#examples-5">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">bytes</span>::{<span class="ident">Bytes</span>, <span class="ident">Buf</span>, <span class="ident">IntoBuf</span>};
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">buf</span> <span class="op">=</span> <span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;hello &quot;</span>[..]).<span class="ident">into_buf</span>()
.<span class="ident">chain</span>(<span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;world&quot;</span>[..]));
<span class="ident">buf</span>.<span class="ident">last_mut</span>().<span class="ident">set_position</span>(<span class="number">1</span>);
<span class="kw">let</span> <span class="ident">full</span>: <span class="ident">Bytes</span> <span class="op">=</span> <span class="ident">buf</span>.<span class="ident">collect</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">full</span>[..], <span class="string">b&quot;hello orld&quot;</span>[..]);</pre>
</div><h4 id='method.into_inner' class="method"><span id='into_inner.v' class='invisible'><code>pub fn <a href='#method.into_inner' class='fnname'>into_inner</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T, U<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#141-143' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Consumes this <code>Chain</code>, returning the underlying values.</p>
<h1 id="examples-6" class="section-header"><a href="#examples-6">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">bytes</span>::{<span class="ident">Bytes</span>, <span class="ident">Buf</span>, <span class="ident">IntoBuf</span>};
<span class="kw">let</span> <span class="ident">buf</span> <span class="op">=</span> <span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;hello&quot;</span>[..]).<span class="ident">into_buf</span>()
.<span class="ident">chain</span>(<span class="ident">Bytes</span>::<span class="ident">from</span>(<span class="kw-2">&amp;</span><span class="string">b&quot;world&quot;</span>[..]));
<span class="kw">let</span> (<span class="ident">first</span>, <span class="ident">last</span>) <span class="op">=</span> <span class="ident">buf</span>.<span class="ident">into_inner</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">first</span>.<span class="ident">get_ref</span>()[..], <span class="string">b&quot;hello&quot;</span>[..]);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">last</span>.<span class="ident">get_ref</span>()[..], <span class="string">b&quot;world&quot;</span>[..]);</pre>
</div></div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<h3 id='impl-Debug' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, U:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../bytes/buf/struct.Chain.html" title="struct bytes::buf::Chain">Chain</a>&lt;T, U&gt;</code><a href='#impl-Debug' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#29' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, __arg_0: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#29' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Buf' class='impl'><span class='in-band'><code>impl&lt;T, U&gt; <a class="trait" href="../../bytes/buf/trait.Buf.html" title="trait bytes::buf::Buf">Buf</a> for <a class="struct" href="../../bytes/buf/struct.Chain.html" title="struct bytes::buf::Chain">Chain</a>&lt;T, U&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../bytes/buf/trait.Buf.html" title="trait bytes::buf::Buf">Buf</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../bytes/buf/trait.Buf.html" title="trait bytes::buf::Buf">Buf</a>,&nbsp;</span></code><a href='#impl-Buf' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#146-185' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.remaining' class="method"><span id='remaining.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#tymethod.remaining' class='fnname'>remaining</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#150-152' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Returns the number of bytes between the current position and the end of the buffer. <a href="../../bytes/buf/trait.Buf.html#tymethod.remaining">Read more</a></p>
</div><h4 id='method.bytes' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></h3><code class="content"><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span></code></div></div><span id='bytes.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#tymethod.bytes' class='fnname'>bytes</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#154-160' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Returns a slice starting at the current position and of length between 0 and <code>Buf::remaining()</code>. <a href="../../bytes/buf/trait.Buf.html#tymethod.bytes">Read more</a></p>
</div><h4 id='method.advance' class="method"><span id='advance.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#tymethod.advance' class='fnname'>advance</a>(&amp;mut self, cnt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#162-178' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Advance the internal cursor of the Buf <a href="../../bytes/buf/trait.Buf.html#tymethod.advance">Read more</a></p>
</div><h4 id='method.bytes_vec' class="method"><span id='bytes_vec.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.bytes_vec' class='fnname'>bytes_vec</a>&lt;'a&gt;(&amp;'a self, dst: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;mut [</a>&amp;'a <a class="struct" href="../../iovec/struct.IoVec.html" title="struct iovec::IoVec">IoVec</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#180-184' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Fills <code>dst</code> with potentially multiple slices starting at <code>self</code>'s current position. <a href="../../bytes/buf/trait.Buf.html#method.bytes_vec">Read more</a></p>
</div><h4 id='method.has_remaining' class="method"><span id='has_remaining.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.has_remaining' class='fnname'>has_remaining</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#212-214' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Returns true if there are any more bytes to consume <a href="../../bytes/buf/trait.Buf.html#method.has_remaining">Read more</a></p>
</div><h4 id='method.copy_to_slice' class="method"><span id='copy_to_slice.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.copy_to_slice' class='fnname'>copy_to_slice</a>(&amp;mut self, dst: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#238-258' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Copies bytes from <code>self</code> into <code>dst</code>. <a href="../../bytes/buf/trait.Buf.html#method.copy_to_slice">Read more</a></p>
</div><h4 id='method.get_u8' class="method"><span id='get_u8.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_u8' class='fnname'>get_u8</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#277-282' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an unsigned 8 bit integer from <code>self</code>. <a href="../../bytes/buf/trait.Buf.html#method.get_u8">Read more</a></p>
</div><h4 id='method.get_i8' class="method"><span id='get_i8.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_i8' class='fnname'>get_i8</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#301-306' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a signed 8 bit integer from <code>self</code>. <a href="../../bytes/buf/trait.Buf.html#method.get_i8">Read more</a></p>
</div><h4 id='method.get_u16_be' class="method"><span id='get_u16_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_u16_be' class='fnname'>get_u16_be</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#333-335' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an unsigned 16 bit integer from <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_u16_be">Read more</a></p>
</div><h4 id='method.get_u16_le' class="method"><span id='get_u16_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_u16_le' class='fnname'>get_u16_le</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an unsigned 16 bit integer from <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_u16_le">Read more</a></p>
</div><h4 id='method.get_i16_be' class="method"><span id='get_i16_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_i16_be' class='fnname'>get_i16_be</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#383-385' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a signed 16 bit integer from <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_i16_be">Read more</a></p>
</div><h4 id='method.get_i16_le' class="method"><span id='get_i16_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_i16_le' class='fnname'>get_i16_le</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#404-406' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a signed 16 bit integer from <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_i16_le">Read more</a></p>
</div><h4 id='method.get_u32_be' class="method"><span id='get_u32_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_u32_be' class='fnname'>get_u32_be</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#433-435' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an unsigned 32 bit integer from <code>self</code> in the big-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_u32_be">Read more</a></p>
</div><h4 id='method.get_u32_le' class="method"><span id='get_u32_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_u32_le' class='fnname'>get_u32_le</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#454-456' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an unsigned 32 bit integer from <code>self</code> in the little-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_u32_le">Read more</a></p>
</div><h4 id='method.get_i32_be' class="method"><span id='get_i32_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_i32_be' class='fnname'>get_i32_be</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#483-485' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a signed 32 bit integer from <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_i32_be">Read more</a></p>
</div><h4 id='method.get_i32_le' class="method"><span id='get_i32_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_i32_le' class='fnname'>get_i32_le</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#504-506' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a signed 32 bit integer from <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_i32_le">Read more</a></p>
</div><h4 id='method.get_u64_be' class="method"><span id='get_u64_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_u64_be' class='fnname'>get_u64_be</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#533-535' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an unsigned 64 bit integer from <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_u64_be">Read more</a></p>
</div><h4 id='method.get_u64_le' class="method"><span id='get_u64_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_u64_le' class='fnname'>get_u64_le</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#554-556' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an unsigned 64 bit integer from <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_u64_le">Read more</a></p>
</div><h4 id='method.get_i64_be' class="method"><span id='get_i64_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_i64_be' class='fnname'>get_i64_be</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#583-585' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a signed 64 bit integer from <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_i64_be">Read more</a></p>
</div><h4 id='method.get_i64_le' class="method"><span id='get_i64_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_i64_le' class='fnname'>get_i64_le</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#604-606' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a signed 64 bit integer from <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_i64_le">Read more</a></p>
</div><h4 id='method.get_uint_be' class="method"><span id='get_uint_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_uint_be' class='fnname'>get_uint_be</a>(&amp;mut self, nbytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#725-727' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an unsigned n-byte integer from <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_uint_be">Read more</a></p>
</div><h4 id='method.get_uint_le' class="method"><span id='get_uint_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_uint_le' class='fnname'>get_uint_le</a>(&amp;mut self, nbytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#746-748' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an unsigned n-byte integer from <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_uint_le">Read more</a></p>
</div><h4 id='method.get_int_be' class="method"><span id='get_int_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_int_be' class='fnname'>get_int_be</a>(&amp;mut self, nbytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#775-777' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a signed n-byte integer from <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_int_be">Read more</a></p>
</div><h4 id='method.get_int_le' class="method"><span id='get_int_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_int_le' class='fnname'>get_int_le</a>(&amp;mut self, nbytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#796-798' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets a signed n-byte integer from <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_int_le">Read more</a></p>
</div><h4 id='method.get_f32_be' class="method"><span id='get_f32_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_f32_be' class='fnname'>get_f32_be</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#826-828' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an IEEE754 single-precision (4 bytes) floating point number from <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_f32_be">Read more</a></p>
</div><h4 id='method.get_f32_le' class="method"><span id='get_f32_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_f32_le' class='fnname'>get_f32_le</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#848-850' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an IEEE754 single-precision (4 bytes) floating point number from <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_f32_le">Read more</a></p>
</div><h4 id='method.get_f64_be' class="method"><span id='get_f64_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_f64_be' class='fnname'>get_f64_be</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#878-880' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an IEEE754 double-precision (8 bytes) floating point number from <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_f64_be">Read more</a></p>
</div><h4 id='method.get_f64_le' class="method"><span id='get_f64_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.get_f64_le' class='fnname'>get_f64_le</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#900-902' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Gets an IEEE754 double-precision (8 bytes) floating point number from <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.Buf.html#method.get_f64_le">Read more</a></p>
</div><h4 id='method.collect' class="method"><span id='collect.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.collect' class='fnname'>collect</a>&lt;B&gt;(self) -&gt; B <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../bytes/buf/trait.FromBuf.html" title="trait bytes::buf::FromBuf">FromBuf</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#921-926' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Transforms a <code>Buf</code> into a concrete buffer. <a href="../../bytes/buf/trait.Buf.html#method.collect">Read more</a></p>
</div><h4 id='method.take' class="method"><span id='take.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.take' class='fnname'>take</a>(self, limit: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../bytes/buf/struct.Take.html" title="struct bytes::buf::Take">Take</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#950-954' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Creates an adaptor which will read at most <code>limit</code> bytes from <code>self</code>. <a href="../../bytes/buf/trait.Buf.html#method.take">Read more</a></p>
</div><h4 id='method.chain' class="method"><span id='chain.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.chain' class='fnname'>chain</a>&lt;U&gt;(self, next: U) -&gt; <a class="struct" href="../../bytes/buf/struct.Chain.html" title="struct bytes::buf::Chain">Chain</a>&lt;Self, U::<a class="type" href="../../bytes/buf/trait.IntoBuf.html#associatedtype.Buf" title="type bytes::buf::IntoBuf::Buf">Buf</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../bytes/buf/trait.IntoBuf.html" title="trait bytes::buf::IntoBuf">IntoBuf</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#973-978' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Creates an adaptor which will chain this buffer with another. <a href="../../bytes/buf/trait.Buf.html#method.chain">Read more</a></p>
</div><h4 id='method.by_ref' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</h3><code class="content"><span class="where fmt-newline">impl&lt;'a, R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, W&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>I <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><span id='by_ref.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.by_ref' class='fnname'>by_ref</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#1003-1005' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Creates a &quot;by reference&quot; adaptor for this instance of <code>Buf</code>. <a href="../../bytes/buf/trait.Buf.html#method.by_ref">Read more</a></p>
</div><h4 id='method.reader' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="struct" href="../../bytes/buf/struct.Reader.html" title="struct bytes::buf::Reader">Reader</a>&lt;B&gt;</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="struct" href="../../bytes/buf/struct.Reader.html" title="struct bytes::buf::Reader">Reader</a>&lt;B&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;B:&nbsp;<a class="trait" href="../../bytes/buf/trait.Buf.html" title="trait bytes::buf::Buf">Buf</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="struct" href="../../bytes/buf/struct.Reader.html" title="struct bytes::buf::Reader">Reader</a>&lt;B&gt;</span></code></div></div><span id='reader.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.reader' class='fnname'>reader</a>(self) -&gt; <a class="struct" href="../../bytes/buf/struct.Reader.html" title="struct bytes::buf::Reader">Reader</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#1030-1032' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Creates an adaptor which implements the <code>Read</code> trait for <code>self</code>. <a href="../../bytes/buf/trait.Buf.html#method.reader">Read more</a></p>
</div><h4 id='method.iter' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="struct" href="../../bytes/buf/struct.Iter.html" title="struct bytes::buf::Iter">Iter</a>&lt;T&gt;</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="struct" href="../../bytes/buf/struct.Iter.html" title="struct bytes::buf::Iter">Iter</a>&lt;T&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;T:&nbsp;<a class="trait" href="../../bytes/buf/trait.Buf.html" title="trait bytes::buf::Buf">Buf</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="struct" href="../../bytes/buf/struct.Iter.html" title="struct bytes::buf::Iter">Iter</a>&lt;T&gt;</span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>;</span></code></div></div><span id='iter.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.Buf.html#method.iter' class='fnname'>iter</a>(self) -&gt; <a class="struct" href="../../bytes/buf/struct.Iter.html" title="struct bytes::buf::Iter">Iter</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf.rs.html#1049-1051' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Returns an iterator over the bytes contained by the buffer. <a href="../../bytes/buf/trait.Buf.html#method.iter">Read more</a></p>
</div></div><h3 id='impl-BufMut' class='impl'><span class='in-band'><code>impl&lt;T, U&gt; <a class="trait" href="../../bytes/buf/trait.BufMut.html" title="trait bytes::buf::BufMut">BufMut</a> for <a class="struct" href="../../bytes/buf/struct.Chain.html" title="struct bytes::buf::Chain">Chain</a>&lt;T, U&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../bytes/buf/trait.BufMut.html" title="trait bytes::buf::BufMut">BufMut</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../bytes/buf/trait.BufMut.html" title="trait bytes::buf::BufMut">BufMut</a>,&nbsp;</span></code><a href='#impl-BufMut' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#187-226' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.remaining_mut' class="method"><span id='remaining_mut.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#tymethod.remaining_mut' class='fnname'>remaining_mut</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#191-193' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Returns the number of bytes that can be written from the current position until the end of the buffer is reached. <a href="../../bytes/buf/trait.BufMut.html#tymethod.remaining_mut">Read more</a></p>
</div><h4 id='method.bytes_mut' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></h3><code class="content"><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span></code></div></div><span id='bytes_mut.v' class='invisible'><code>unsafe fn <a href='../../bytes/buf/trait.BufMut.html#tymethod.bytes_mut' class='fnname'>bytes_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#195-201' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Returns a mutable slice starting at the current BufMut position and of length between 0 and <code>BufMut::remaining_mut()</code>. <a href="../../bytes/buf/trait.BufMut.html#tymethod.bytes_mut">Read more</a></p>
</div><h4 id='method.advance_mut' class="method"><span id='advance_mut.v' class='invisible'><code>unsafe fn <a href='../../bytes/buf/trait.BufMut.html#tymethod.advance_mut' class='fnname'>advance_mut</a>(&amp;mut self, cnt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#203-219' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Advance the internal cursor of the BufMut <a href="../../bytes/buf/trait.BufMut.html#tymethod.advance_mut">Read more</a></p>
</div><h4 id='method.bytes_vec_mut' class="method"><span id='bytes_vec_mut.v' class='invisible'><code>unsafe fn <a href='../../bytes/buf/trait.BufMut.html#method.bytes_vec_mut' class='fnname'>bytes_vec_mut</a>&lt;'a&gt;(&amp;'a mut self, dst: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;mut [</a>&amp;'a mut <a class="struct" href="../../iovec/struct.IoVec.html" title="struct iovec::IoVec">IoVec</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/chain.rs.html#221-225' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Fills <code>dst</code> with potentially multiple mutable slices starting at <code>self</code>'s current position. <a href="../../bytes/buf/trait.BufMut.html#method.bytes_vec_mut">Read more</a></p>
</div><h4 id='method.has_remaining_mut' class="method"><span id='has_remaining_mut.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.has_remaining_mut' class='fnname'>has_remaining_mut</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#119-121' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Returns true if there is space in <code>self</code> for more bytes. <a href="../../bytes/buf/trait.BufMut.html#method.has_remaining_mut">Read more</a></p>
</div><h4 id='method.put' class="method"><span id='put.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put' class='fnname'>put</a>&lt;T:&nbsp;<a class="trait" href="../../bytes/buf/trait.IntoBuf.html" title="trait bytes::buf::IntoBuf">IntoBuf</a>&gt;(&amp;mut self, src: T) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#224-248' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Transfer bytes into <code>self</code> from <code>src</code> and advance the cursor by the number of bytes written. <a href="../../bytes/buf/trait.BufMut.html#method.put">Read more</a></p>
</div><h4 id='method.put_slice' class="method"><span id='put_slice.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_slice' class='fnname'>put_slice</a>(&amp;mut self, src: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#270-293' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Transfer bytes into <code>self</code> from <code>src</code> and advance the cursor by the number of bytes written. <a href="../../bytes/buf/trait.BufMut.html#method.put_slice">Read more</a></p>
</div><h4 id='method.put_u8' class="method"><span id='put_u8.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_u8' class='fnname'>put_u8</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#313-316' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an unsigned 8 bit integer to <code>self</code>. <a href="../../bytes/buf/trait.BufMut.html#method.put_u8">Read more</a></p>
</div><h4 id='method.put_i8' class="method"><span id='put_i8.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_i8' class='fnname'>put_i8</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#336-339' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes a signed 8 bit integer to <code>self</code>. <a href="../../bytes/buf/trait.BufMut.html#method.put_i8">Read more</a></p>
</div><h4 id='method.put_u16_be' class="method"><span id='put_u16_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_u16_be' class='fnname'>put_u16_be</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#367-371' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an unsigned 16 bit integer to <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_u16_be">Read more</a></p>
</div><h4 id='method.put_u16_le' class="method"><span id='put_u16_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_u16_le' class='fnname'>put_u16_le</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#391-395' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an unsigned 16 bit integer to <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_u16_le">Read more</a></p>
</div><h4 id='method.put_i16_be' class="method"><span id='put_i16_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_i16_be' class='fnname'>put_i16_be</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#423-427' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes a signed 16 bit integer to <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_i16_be">Read more</a></p>
</div><h4 id='method.put_i16_le' class="method"><span id='put_i16_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_i16_le' class='fnname'>put_i16_le</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#447-451' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes a signed 16 bit integer to <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_i16_le">Read more</a></p>
</div><h4 id='method.put_u32_be' class="method"><span id='put_u32_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_u32_be' class='fnname'>put_u32_be</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#479-483' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an unsigned 32 bit integer to <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_u32_be">Read more</a></p>
</div><h4 id='method.put_u32_le' class="method"><span id='put_u32_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_u32_le' class='fnname'>put_u32_le</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#503-507' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an unsigned 32 bit integer to <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_u32_le">Read more</a></p>
</div><h4 id='method.put_i32_be' class="method"><span id='put_i32_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_i32_be' class='fnname'>put_i32_be</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#535-539' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes a signed 32 bit integer to <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_i32_be">Read more</a></p>
</div><h4 id='method.put_i32_le' class="method"><span id='put_i32_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_i32_le' class='fnname'>put_i32_le</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#559-563' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes a signed 32 bit integer to <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_i32_le">Read more</a></p>
</div><h4 id='method.put_u64_be' class="method"><span id='put_u64_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_u64_be' class='fnname'>put_u64_be</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#591-595' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an unsigned 64 bit integer to <code>self</code> in the big-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_u64_be">Read more</a></p>
</div><h4 id='method.put_u64_le' class="method"><span id='put_u64_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_u64_le' class='fnname'>put_u64_le</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#615-619' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an unsigned 64 bit integer to <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_u64_le">Read more</a></p>
</div><h4 id='method.put_i64_be' class="method"><span id='put_i64_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_i64_be' class='fnname'>put_i64_be</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#647-651' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes a signed 64 bit integer to <code>self</code> in the big-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_i64_be">Read more</a></p>
</div><h4 id='method.put_i64_le' class="method"><span id='put_i64_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_i64_le' class='fnname'>put_i64_le</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#671-675' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes a signed 64 bit integer to <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_i64_le">Read more</a></p>
</div><h4 id='method.put_uint_be' class="method"><span id='put_uint_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_uint_be' class='fnname'>put_uint_be</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, nbytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#807-811' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an unsigned n-byte integer to <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_uint_be">Read more</a></p>
</div><h4 id='method.put_uint_le' class="method"><span id='put_uint_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_uint_le' class='fnname'>put_uint_le</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, nbytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#831-835' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an unsigned n-byte integer to <code>self</code> in the little-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_uint_le">Read more</a></p>
</div><h4 id='method.put_int_be' class="method"><span id='put_int_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_int_be' class='fnname'>put_int_be</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, nbytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#863-867' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes a signed n-byte integer to <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_int_be">Read more</a></p>
</div><h4 id='method.put_int_le' class="method"><span id='put_int_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_int_le' class='fnname'>put_int_le</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, nbytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#887-891' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes a signed n-byte integer to <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_int_le">Read more</a></p>
</div><h4 id='method.put_f32_be' class="method"><span id='put_f32_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_f32_be' class='fnname'>put_f32_be</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#920-924' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an IEEE754 single-precision (4 bytes) floating point number to <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_f32_be">Read more</a></p>
</div><h4 id='method.put_f32_le' class="method"><span id='put_f32_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_f32_le' class='fnname'>put_f32_le</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#945-949' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an IEEE754 single-precision (4 bytes) floating point number to <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_f32_le">Read more</a></p>
</div><h4 id='method.put_f64_be' class="method"><span id='put_f64_be.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_f64_be' class='fnname'>put_f64_be</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#978-982' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an IEEE754 double-precision (8 bytes) floating point number to <code>self</code> in big-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_f64_be">Read more</a></p>
</div><h4 id='method.put_f64_le' class="method"><span id='put_f64_le.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.put_f64_le' class='fnname'>put_f64_le</a>(&amp;mut self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#1003-1007' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Writes an IEEE754 double-precision (8 bytes) floating point number to <code>self</code> in little-endian byte order. <a href="../../bytes/buf/trait.BufMut.html#method.put_f64_le">Read more</a></p>
</div><h4 id='method.by_ref-1' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R</h3><code class="content"><span class="where fmt-newline">impl&lt;'a, R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, W&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>I <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><span id='by_ref.v-1' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.by_ref' class='fnname'>by_ref</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#1034-1036' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Creates a &quot;by reference&quot; adaptor for this instance of <code>BufMut</code>. <a href="../../bytes/buf/trait.BufMut.html#method.by_ref">Read more</a></p>
</div><h4 id='method.writer' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="struct" href="../../bytes/buf/struct.Writer.html" title="struct bytes::buf::Writer">Writer</a>&lt;B&gt;</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="struct" href="../../bytes/buf/struct.Writer.html" title="struct bytes::buf::Writer">Writer</a>&lt;B&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;B:&nbsp;<a class="trait" href="../../bytes/buf/trait.BufMut.html" title="trait bytes::buf::BufMut">BufMut</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="../../bytes/buf/struct.Writer.html" title="struct bytes::buf::Writer">Writer</a>&lt;B&gt;</span></code></div></div><span id='writer.v' class='invisible'><code>fn <a href='../../bytes/buf/trait.BufMut.html#method.writer' class='fnname'>writer</a>(self) -&gt; <a class="struct" href="../../bytes/buf/struct.Writer.html" title="struct bytes::buf::Writer">Writer</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/bytes/buf/buf_mut.rs.html#1060-1062' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Creates an adaptor which implements the <code>Write</code> trait for <code>self</code>. <a href="../../bytes/buf/trait.BufMut.html#method.writer">Read more</a></p>
</div></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 = "bytes";
</script>
<script src="../../main.js"></script>
<script defer src="../../search-index.js"></script>
</body>
</html>