13 lines
14 KiB
HTML
13 lines
14 KiB
HTML
<!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 `ExtendInto` trait in crate `nom`."><meta name="keywords" content="rust, rustlang, rust-lang, ExtendInto"><title>nom::ExtendInto - 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="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[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">☰</div><a href='../nom/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Trait ExtendInto</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.Item">Item</a><a href="#associatedtype.Extender">Extender</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.extend_into">extend_into</a><a href="#tymethod.new_builder">new_builder</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-ExtendInto-for-%5Bu8%5D">[u8]</a><a href="#impl-ExtendInto-for-char">char</a><a href="#impl-ExtendInto-for-str">str</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>nom</a></p><script>window.sidebarCurrent = {name: 'ExtendInto', ty: 'trait', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>−</span>]</a></span><a class='srclink' href='../src/nom/traits.rs.html#1064-1074' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>nom</a>::<wbr><a class="trait" href=''>ExtendInto</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait ExtendInto {
|
||
type <a href='#associatedtype.Item' class="type">Item</a>;
|
||
type <a href='#associatedtype.Extender' class="type">Extender</a>: <a class="trait" href="../nom/lib/std/prelude/v1/v1/trait.Extend.html" title="trait nom::lib::std::prelude::v1::v1::Extend">Extend</a><Self::<a class="type" href="../nom/trait.ExtendInto.html#associatedtype.Item" title="type nom::ExtendInto::Item">Item</a>>;
|
||
fn <a href='#tymethod.new_builder' class='fnname'>new_builder</a>(&self) -> Self::<a class="type" href="../nom/trait.ExtendInto.html#associatedtype.Extender" title="type nom::ExtendInto::Extender">Extender</a>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.extend_into' class='fnname'>extend_into</a>(&self, acc: &mut Self::<a class="type" href="../nom/trait.ExtendInto.html#associatedtype.Extender" title="type nom::ExtendInto::Extender">Extender</a>);
|
||
}</pre></div><div class='docblock'><p>abtracts something which can extend an <code>Extend</code></p>
|
||
</div>
|
||
<h2 id='associated-types' class='small-section-header'>Associated Types<a href='#associated-types' class='anchor'></a></h2><div class='methods'><h3 id='associatedtype.Item' class='method'><code id='Item.t'>type <a href='#associatedtype.Item' class="type">Item</a></code></h3><h3 id='associatedtype.Extender' class='method'><code id='Extender.t'>type <a href='#associatedtype.Extender' class="type">Extender</a>: <a class="trait" href="../nom/lib/std/prelude/v1/v1/trait.Extend.html" title="trait nom::lib::std::prelude::v1::v1::Extend">Extend</a><Self::<a class="type" href="../nom/trait.ExtendInto.html#associatedtype.Item" title="type nom::ExtendInto::Item">Item</a>></code></h3></div><span class='loading-content'>Loading content...</span>
|
||
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.new_builder' class='method'><code id='new_builder.v'>fn <a href='#tymethod.new_builder' class='fnname'>new_builder</a>(&self) -> Self::<a class="type" href="../nom/trait.ExtendInto.html#associatedtype.Extender" title="type nom::ExtendInto::Extender">Extender</a></code></h3><div class='docblock'><p>create a new <code>Extend</code> of the correct type</p>
|
||
</div><h3 id='tymethod.extend_into' class='method'><code id='extend_into.v'>fn <a href='#tymethod.extend_into' class='fnname'>extend_into</a>(&self, acc: &mut Self::<a class="type" href="../nom/trait.ExtendInto.html#associatedtype.Extender" title="type nom::ExtendInto::Extender">Extender</a>)</code></h3><div class='docblock'><p>accumulate the input into an accumulator</p>
|
||
</div></div><span class='loading-content'>Loading content...</span>
|
||
<h2 id='foreign-impls' class='small-section-header'>Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a></h2><h3 id='impl-ExtendInto-for-%5Bu8%5D' class='impl'><code class='in-band'>impl <a class="trait" href="../nom/trait.ExtendInto.html" title="trait nom::ExtendInto">ExtendInto</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</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><a href='#impl-ExtendInto-for-%5Bu8%5D' class='anchor'></a><a class='srclink' href='../src/nom/traits.rs.html#1077-1089' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-1' class="type"><code id='Item.t-1'>type <a href='#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></h4><h4 id='associatedtype.Extender-1' class="type"><code id='Extender.t-1'>type <a href='#associatedtype.Extender' class="type">Extender</a> = <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.Vec.html" title="struct nom::lib::std::prelude::v1::v1::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>></code></h4><h4 id='method.new_builder' class="method hidden"><code id='new_builder.v-1'>fn <a href='#method.new_builder' class='fnname'>new_builder</a>(&self) -> <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.Vec.html" title="struct nom::lib::std::prelude::v1::v1::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>></code><a class='srclink' href='../src/nom/traits.rs.html#1082-1084' title='goto source code'>[src]</a></h4><h4 id='method.extend_into' class="method hidden"><code id='extend_into.v-1'>fn <a href='#method.extend_into' class='fnname'>extend_into</a>(&self, acc: &mut <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.Vec.html" title="struct nom::lib::std::prelude::v1::v1::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>)</code><a class='srclink' href='../src/nom/traits.rs.html#1086-1088' title='goto source code'>[src]</a></h4></div><h3 id='impl-ExtendInto-for-str' class='impl'><code class='in-band'>impl <a class="trait" href="../nom/trait.ExtendInto.html" title="trait nom::ExtendInto">ExtendInto</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href='#impl-ExtendInto-for-str' class='anchor'></a><a class='srclink' href='../src/nom/traits.rs.html#1092-1104' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-2' class="type"><code id='Item.t-2'>type <a href='#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></code></h4><h4 id='associatedtype.Extender-2' class="type"><code id='Extender.t-2'>type <a href='#associatedtype.Extender' class="type">Extender</a> = <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.String.html" title="struct nom::lib::std::prelude::v1::v1::String">String</a></code></h4><h4 id='method.new_builder-1' class="method hidden"><code id='new_builder.v-2'>fn <a href='#method.new_builder' class='fnname'>new_builder</a>(&self) -> <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.String.html" title="struct nom::lib::std::prelude::v1::v1::String">String</a></code><a class='srclink' href='../src/nom/traits.rs.html#1097-1099' title='goto source code'>[src]</a></h4><h4 id='method.extend_into-1' class="method hidden"><code id='extend_into.v-2'>fn <a href='#method.extend_into' class='fnname'>extend_into</a>(&self, acc: &mut <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.String.html" title="struct nom::lib::std::prelude::v1::v1::String">String</a>)</code><a class='srclink' href='../src/nom/traits.rs.html#1101-1103' title='goto source code'>[src]</a></h4></div><h3 id='impl-ExtendInto-for-char' class='impl'><code class='in-band'>impl <a class="trait" href="../nom/trait.ExtendInto.html" title="trait nom::ExtendInto">ExtendInto</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></code><a href='#impl-ExtendInto-for-char' class='anchor'></a><a class='srclink' href='../src/nom/traits.rs.html#1107-1119' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-3' class="type"><code id='Item.t-3'>type <a href='#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></code></h4><h4 id='associatedtype.Extender-3' class="type"><code id='Extender.t-3'>type <a href='#associatedtype.Extender' class="type">Extender</a> = <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.String.html" title="struct nom::lib::std::prelude::v1::v1::String">String</a></code></h4><h4 id='method.new_builder-2' class="method hidden"><code id='new_builder.v-3'>fn <a href='#method.new_builder' class='fnname'>new_builder</a>(&self) -> <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.String.html" title="struct nom::lib::std::prelude::v1::v1::String">String</a></code><a class='srclink' href='../src/nom/traits.rs.html#1112-1114' title='goto source code'>[src]</a></h4><h4 id='method.extend_into-2' class="method hidden"><code id='extend_into.v-3'>fn <a href='#method.extend_into' class='fnname'>extend_into</a>(&self, acc: &mut <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.String.html" title="struct nom::lib::std::prelude::v1::v1::String">String</a>)</code><a class='srclink' href='../src/nom/traits.rs.html#1116-1118' title='goto source code'>[src]</a></h4></div><span class='loading-content'>Loading content...</span>
|
||
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-ExtendInto' class='impl'><code class='in-band'>impl<'a> ExtendInto for <a class="struct" href="../nom/types/struct.CompleteStr.html" title="struct nom::types::CompleteStr">CompleteStr</a><'a></code><a href='#impl-ExtendInto' class='anchor'></a><a class='srclink' href='../src/nom/types.rs.html#185-197' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-4' class="type"><code id='Item.t-4'>type <a href='#associatedtype.Item-4' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></code></h4><h4 id='associatedtype.Extender-4' class="type"><code id='Extender.t-4'>type <a href='#associatedtype.Extender-4' class="type">Extender</a> = <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.String.html" title="struct nom::lib::std::prelude::v1::v1::String">String</a></code></h4><h4 id='method.new_builder-3' class="method hidden"><code id='new_builder.v-4'>fn <a href='#method.new_builder-3' class='fnname'>new_builder</a>(&self) -> <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.String.html" title="struct nom::lib::std::prelude::v1::v1::String">String</a></code><a class='srclink' href='../src/nom/types.rs.html#190-192' title='goto source code'>[src]</a></h4><h4 id='method.extend_into-3' class="method hidden"><code id='extend_into.v-4'>fn <a href='#method.extend_into-3' class='fnname'>extend_into</a>(&self, acc: &mut <a class="struct" href="../nom/lib/std/prelude/v1/v1/struct.String.html" title="struct nom::lib::std::prelude::v1::v1::String">String</a>)</code><a class='srclink' href='../src/nom/types.rs.html#194-196' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../implementors/nom/trait.ExtendInto.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "nom";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html> |