97 lines
71 KiB
HTML
97 lines
71 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 `RangeToInclusive` struct in crate `nom`."><meta name="keywords" content="rust, rustlang, rust-lang, RangeToInclusive"><title>nom::lib::std::ops::RangeToInclusive - 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 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">☰</div><a href='../../../../nom/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct RangeToInclusive</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.end">end</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.contains">contains</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Eq">Eq</a><a href="#impl-Hash">Hash</a><a href="#impl-Index%3CRangeToInclusive%3Cusize%3E%3E">Index<RangeToInclusive<usize>></a><a href="#impl-IndexMut%3CRangeToInclusive%3Cusize%3E%3E">IndexMut<RangeToInclusive<usize>></a><a href="#impl-PartialEq%3CRangeToInclusive%3CIdx%3E%3E">PartialEq<RangeToInclusive<Idx>></a><a href="#impl-RangeBounds%3CT%3E">RangeBounds<T></a><a href="#impl-SliceIndex%3C%5BT%5D%3E">SliceIndex<[T]></a><a href="#impl-SliceIndex%3Cstr%3E">SliceIndex<str></a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='../../../index.html'>nom</a>::<wbr><a href='../../index.html'>lib</a>::<wbr><a href='../index.html'>std</a>::<wbr><a href='index.html'>ops</a></p><script>window.sidebarCurrent = {name: 'RangeToInclusive', 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"><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 class='since' title='Stable since Rust version 1.26.0'>1.26.0</span><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='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#585-589' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../../index.html'>nom</a>::<wbr><a href='../../index.html'>lib</a>::<wbr><a href='../index.html'>std</a>::<wbr><a href='index.html'>ops</a>::<wbr><a class="struct" href=''>RangeToInclusive</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct RangeToInclusive<Idx> {
|
||
pub end: Idx,
|
||
}</pre></div><div class='docblock'><p>A range only bounded inclusively above (<code>..=end</code>).</p>
|
||
<p>The <code>RangeToInclusive</code> <code>..=end</code> contains all values with <code>x <= end</code>.
|
||
It cannot serve as an <a href="../iter/trait.IntoIterator.html"><code>Iterator</code></a> because it doesn't have a starting point.</p>
|
||
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
|
||
<p>The <code>..=end</code> syntax is a <code>RangeToInclusive</code>:</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||
<span class="macro">assert_eq</span><span class="macro">!</span>((..<span class="op">=</span><span class="number">5</span>), <span class="ident">std</span>::<span class="ident">ops</span>::<span class="ident">RangeToInclusive</span>{ <span class="ident">end</span>: <span class="number">5</span> });</pre></div>
|
||
<p>It does not have an <a href="../iter/trait.Iterator.html"><code>IntoIterator</code></a> implementation, so you can't use it in a
|
||
<code>for</code> loop directly. This won't compile:</p>
|
||
|
||
<div class='information'><div class='tooltip compile_fail'>ⓘ<span class='tooltiptext'>This example deliberately fails to compile</span></div></div><div class="example-wrap"><pre class="rust rust-example-rendered compile_fail">
|
||
<span class="comment">// error[E0277]: the trait bound `std::ops::RangeToInclusive<{integer}>:</span>
|
||
<span class="comment">// std::iter::Iterator` is not satisfied</span>
|
||
<span class="kw">for</span> <span class="ident">i</span> <span class="kw">in</span> ..<span class="op">=</span><span class="number">5</span> {
|
||
<span class="comment">// ...</span>
|
||
}</pre></div>
|
||
<p>When used as a <a href="../slice/trait.SliceIndex.html">slicing index</a>, <code>RangeToInclusive</code> produces a slice of all
|
||
array elements up to and including the index indicated by <code>end</code>.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||
<span class="kw">let</span> <span class="ident">arr</span> <span class="op">=</span> [<span class="number">0</span>, <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>];
|
||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">arr</span>[ .. ], [<span class="number">0</span>,<span class="number">1</span>,<span class="number">2</span>,<span class="number">3</span>,<span class="number">4</span>]);
|
||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">arr</span>[ .. <span class="number">3</span>], [<span class="number">0</span>,<span class="number">1</span>,<span class="number">2</span> ]);
|
||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">arr</span>[ ..<span class="op">=</span><span class="number">3</span>], [<span class="number">0</span>,<span class="number">1</span>,<span class="number">2</span>,<span class="number">3</span> ]); <span class="comment">// RangeToInclusive</span>
|
||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">arr</span>[<span class="number">1</span>.. ], [ <span class="number">1</span>,<span class="number">2</span>,<span class="number">3</span>,<span class="number">4</span>]);
|
||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">arr</span>[<span class="number">1</span>.. <span class="number">3</span>], [ <span class="number">1</span>,<span class="number">2</span> ]);
|
||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">arr</span>[<span class="number">1</span>..<span class="op">=</span><span class="number">3</span>], [ <span class="number">1</span>,<span class="number">2</span>,<span class="number">3</span> ]);</pre></div>
|
||
</div><h2 id='fields' class='fields small-section-header'>
|
||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.end" class="structfield small-section-header"><a href="#structfield.end" class="anchor field"></a><code id="end.v">end: Idx</code></span><div class='docblock'><p>The upper bound of the range (inclusive)</p>
|
||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl<Idx> <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.PartialOrd.html" title="trait nom::lib::std::prelude::v1::v1::PartialOrd">PartialOrd</a><Idx>, </span></code><a href='#impl' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#600-624' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.contains' class="method"><code id='contains.v'>pub fn <a href='#method.contains' class='fnname'>contains</a><U>(&self, item: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>U) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.PartialOrd.html" title="trait nom::lib::std::prelude::v1::v1::PartialOrd">PartialOrd</a><U>,<br> U: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.PartialOrd.html" title="trait nom::lib::std::prelude::v1::v1::PartialOrd">PartialOrd</a><Idx> + ?<a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Sized.html" title="trait nom::lib::std::prelude::v1::v1::Sized">Sized</a>, </span></code><span class='since' title='Stable since Rust version 1.35.0'>1.35.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#617-623' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns <code>true</code> if <code>item</code> is contained in the range.</p>
|
||
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;
|
||
|
||
<span class="macro">assert</span><span class="macro">!</span>( (..<span class="op">=</span><span class="number">5</span>).<span class="ident">contains</span>(<span class="kw-2">&</span><span class="op">-</span><span class="number">1_000_000_000</span>));
|
||
<span class="macro">assert</span><span class="macro">!</span>( (..<span class="op">=</span><span class="number">5</span>).<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">5</span>));
|
||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span>(..<span class="op">=</span><span class="number">5</span>).<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">6</span>));
|
||
|
||
<span class="macro">assert</span><span class="macro">!</span>( (..<span class="op">=</span><span class="number">1.0</span>).<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">1.0</span>));
|
||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span>(..<span class="op">=</span><span class="number">1.0</span>).<span class="ident">contains</span>(<span class="kw-2">&</span><span class="ident">f32</span>::<span class="ident">NAN</span>));
|
||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span>(..<span class="op">=</span><span class="ident">f32</span>::<span class="ident">NAN</span>).<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">0.5</span>));</pre></div>
|
||
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-Clone' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Clone.html" title="trait nom::lib::std::prelude::v1::v1::Clone">Clone</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Clone.html" title="trait nom::lib::std::prelude::v1::v1::Clone">Clone</a>, </span></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#583' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='../../../../nom/lib/std/prelude/v1/v1/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#583' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="../../../../nom/lib/std/prelude/v1/v1/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||
</div><h4 id='method.clone_from' class="method hidden"><code id='clone_from.v'>fn <a href='../../../../nom/lib/std/prelude/v1/v1/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="../../../../nom/lib/std/prelude/v1/v1/trait.Clone.html#method.clone_from">Read more</a></p>
|
||
</div></div><h3 id='impl-Copy' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Copy.html" title="trait nom::lib::std::prelude::v1::v1::Copy">Copy</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Copy.html" title="trait nom::lib::std::prelude::v1::v1::Copy">Copy</a>, </span></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#583' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Debug' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="../../../../nom/lib/std/fmt/trait.Debug.html" title="trait nom::lib::std::fmt::Debug">Debug</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="../../../../nom/lib/std/fmt/trait.Debug.html" title="trait nom::lib::std::fmt::Debug">Debug</a>, </span></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#592-598' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='../../../../nom/lib/std/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, fmt: &mut <a class="struct" href="../../../../nom/lib/std/fmt/struct.Formatter.html" title="struct nom::lib::std::fmt::Formatter">Formatter</a>) -> <a class="enum" href="../../../../nom/lib/std/prelude/v1/v1/enum.Result.html" title="enum nom::lib::std::prelude::v1::v1::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../../../../nom/lib/std/fmt/struct.Error.html" title="struct nom::lib::std::fmt::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#593-597' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="../../../../nom/lib/std/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||
</div></div><h3 id='impl-Eq' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Eq.html" title="trait nom::lib::std::prelude::v1::v1::Eq">Eq</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Eq.html" title="trait nom::lib::std::prelude::v1::v1::Eq">Eq</a>, </span></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#583' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Hash' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="../../../../nom/lib/std/hash/trait.Hash.html" title="trait nom::lib::std::hash::Hash">Hash</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="../../../../nom/lib/std/hash/trait.Hash.html" title="trait nom::lib::std::hash::Hash">Hash</a>, </span></code><a href='#impl-Hash' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#583' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.hash' class="method hidden"><code id='hash.v'>fn <a href='../../../../nom/lib/std/hash/trait.Hash.html#tymethod.hash' class='fnname'>hash</a><__H>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>__H) <span class="where fmt-newline">where<br> __H: <a class="trait" href="../../../../nom/lib/std/hash/trait.Hasher.html" title="trait nom::lib::std::hash::Hasher">Hasher</a>, </span></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#583' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Feeds this value into the given [<code>Hasher</code>]. <a href="../../../../nom/lib/std/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
|
||
</div><h4 id='method.hash_slice' class="method hidden"><code id='hash_slice.v'>fn <a href='../../../../nom/lib/std/hash/trait.Hash.html#method.hash_slice' class='fnname'>hash_slice</a><H>(data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>H) <span class="where fmt-newline">where<br> H: <a class="trait" href="../../../../nom/lib/std/hash/trait.Hasher.html" title="trait nom::lib::std::hash::Hasher">Hasher</a>, </span></code><span class='since' title='Stable since Rust version 1.3.0'>1.3.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#194-201' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Feeds a slice of this type into the given [<code>Hasher</code>]. <a href="../../../../nom/lib/std/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
|
||
</div></div><h3 id='impl-Index%3CRangeToInclusive%3Cusize%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="../../../../nom/lib/std/ops/trait.Index.html" title="trait nom::lib::std::ops::Index">Index</a><<a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <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 href='#impl-Index%3CRangeToInclusive%3Cusize%3E%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2039-2046' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-2' class="type"><code id='Output.t-2'>type <a href='../../../../nom/lib/std/ops/trait.Index.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></h4><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div><h4 id='method.index-2' class="method hidden"><code id='index.v-2'>fn <a href='../../../../nom/lib/std/ops/trait.Index.html#tymethod.index' class='fnname'>index</a>(&self, index: <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2043-2045' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the indexing (<code>container[index]</code>) operation.</p>
|
||
</div></div><h3 id='impl-IndexMut%3CRangeToInclusive%3Cusize%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="../../../../nom/lib/std/ops/trait.IndexMut.html" title="trait nom::lib::std::ops::IndexMut">IndexMut</a><<a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <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 href='#impl-IndexMut%3CRangeToInclusive%3Cusize%3E%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2084-2089' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.index_mut-2' class="method hidden"><code id='index_mut.v-2'>fn <a href='../../../../nom/lib/std/ops/trait.IndexMut.html#tymethod.index_mut' class='fnname'>index_mut</a>(&mut self, index: <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2086-2088' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the mutable indexing (<code>container[index]</code>) operation.</p>
|
||
</div></div><h3 id='impl-PartialEq%3CRangeToInclusive%3CIdx%3E%3E' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.PartialEq.html" title="trait nom::lib::std::prelude::v1::v1::PartialEq">PartialEq</a><<a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx>> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.PartialEq.html" title="trait nom::lib::std::prelude::v1::v1::PartialEq">PartialEq</a><Idx>, </span></code><a href='#impl-PartialEq%3CRangeToInclusive%3CIdx%3E%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#583' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code id='eq.v'>fn <a href='../../../../nom/lib/std/prelude/v1/v1/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#583' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="../../../../nom/lib/std/prelude/v1/v1/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div><h4 id='method.ne' class="method hidden"><code id='ne.v'>fn <a href='../../../../nom/lib/std/prelude/v1/v1/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &<a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#583' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||
</div></div><h3 id='impl-RangeBounds%3CT%3E' class='impl'><code class='in-band'>impl<'_, T> <a class="trait" href="../../../../nom/lib/std/ops/trait.RangeBounds.html" title="trait nom::lib::std::ops::RangeBounds">RangeBounds</a><T> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ </a>T></code><a href='#impl-RangeBounds%3CT%3E' class='anchor'></a><span class='since' title='Stable since Rust version 1.28.0'>1.28.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#906-913' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.start_bound' class="method hidden"><code id='start_bound.v'>fn <a href='../../../../nom/lib/std/ops/trait.RangeBounds.html#tymethod.start_bound' class='fnname'>start_bound</a>(&self) -> <a class="enum" href="../../../../nom/lib/std/ops/enum.Bound.html" title="enum nom::lib::std::ops::Bound">Bound</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#907-909' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Start index bound. <a href="../../../../nom/lib/std/ops/trait.RangeBounds.html#tymethod.start_bound">Read more</a></p>
|
||
</div><h4 id='method.end_bound' class="method hidden"><code id='end_bound.v'>fn <a href='../../../../nom/lib/std/ops/trait.RangeBounds.html#tymethod.end_bound' class='fnname'>end_bound</a>(&self) -> <a class="enum" href="../../../../nom/lib/std/ops/enum.Bound.html" title="enum nom::lib::std::ops::Bound">Bound</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#910-912' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>End index bound. <a href="../../../../nom/lib/std/ops/trait.RangeBounds.html#tymethod.end_bound">Read more</a></p>
|
||
</div><h4 id='method.contains-1' class="method hidden"><code id='contains.v-1'>fn <a href='../../../../nom/lib/std/ops/trait.RangeBounds.html#method.contains' class='fnname'>contains</a><U>(&self, item: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>U) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.PartialOrd.html" title="trait nom::lib::std::prelude::v1::v1::PartialOrd">PartialOrd</a><U>,<br> U: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.PartialOrd.html" title="trait nom::lib::std::prelude::v1::v1::PartialOrd">PartialOrd</a><T> + ?<a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Sized.html" title="trait nom::lib::std::prelude::v1::v1::Sized">Sized</a>, </span></code><span class='since' title='Stable since Rust version 1.35.0'>1.35.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#756-770' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns <code>true</code> if <code>item</code> is contained in the range. <a href="../../../../nom/lib/std/ops/trait.RangeBounds.html#method.contains">Read more</a></p>
|
||
</div></div><h3 id='impl-RangeBounds%3CT%3E-1' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../../../../nom/lib/std/ops/trait.RangeBounds.html" title="trait nom::lib::std::ops::RangeBounds">RangeBounds</a><T> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><T></code><a href='#impl-RangeBounds%3CT%3E-1' class='anchor'></a><span class='since' title='Stable since Rust version 1.28.0'>1.28.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#826-833' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.start_bound-1' class="method hidden"><code id='start_bound.v-1'>fn <a href='../../../../nom/lib/std/ops/trait.RangeBounds.html#tymethod.start_bound' class='fnname'>start_bound</a>(&self) -> <a class="enum" href="../../../../nom/lib/std/ops/enum.Bound.html" title="enum nom::lib::std::ops::Bound">Bound</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#827-829' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Start index bound. <a href="../../../../nom/lib/std/ops/trait.RangeBounds.html#tymethod.start_bound">Read more</a></p>
|
||
</div><h4 id='method.end_bound-1' class="method hidden"><code id='end_bound.v-1'>fn <a href='../../../../nom/lib/std/ops/trait.RangeBounds.html#tymethod.end_bound' class='fnname'>end_bound</a>(&self) -> <a class="enum" href="../../../../nom/lib/std/ops/enum.Bound.html" title="enum nom::lib::std::ops::Bound">Bound</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#830-832' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>End index bound. <a href="../../../../nom/lib/std/ops/trait.RangeBounds.html#tymethod.end_bound">Read more</a></p>
|
||
</div><h4 id='method.contains-2' class="method hidden"><code id='contains.v-2'>fn <a href='../../../../nom/lib/std/ops/trait.RangeBounds.html#method.contains' class='fnname'>contains</a><U>(&self, item: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>U) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.PartialOrd.html" title="trait nom::lib::std::prelude::v1::v1::PartialOrd">PartialOrd</a><U>,<br> U: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.PartialOrd.html" title="trait nom::lib::std::prelude::v1::v1::PartialOrd">PartialOrd</a><T> + ?<a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Sized.html" title="trait nom::lib::std::prelude::v1::v1::Sized">Sized</a>, </span></code><span class='since' title='Stable since Rust version 1.35.0'>1.35.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#756-770' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns <code>true</code> if <code>item</code> is contained in the range. <a href="../../../../nom/lib/std/ops/trait.RangeBounds.html#method.contains">Read more</a></p>
|
||
</div></div><h3 id='impl-SliceIndex%3C%5BT%5D%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../../../../nom/lib/std/slice/trait.SliceIndex.html" title="trait nom::lib::std::slice::SliceIndex">SliceIndex</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code><a href='#impl-SliceIndex%3C%5BT%5D%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/slice/mod.rs.html#3060-3092' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output' class="type"><code id='Output.t'>type <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></h4><div class='docblock'><p>The output type returned by methods.</p>
|
||
</div><h4 id='method.get' class="method hidden"><code id='get.v'>fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get' class='fnname'>get</a>(self, slice: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[T]</a>) -> <a class="enum" href="../../../../nom/lib/std/prelude/v1/v1/enum.Option.html" title="enum nom::lib::std::prelude::v1::v1::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[T]</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/slice/mod.rs.html#3064-3066' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a shared reference to the output at this location, if in bounds. <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get">Read more</a></p>
|
||
</div><h4 id='method.get_mut' class="method hidden"><code id='get_mut.v'>fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_mut' class='fnname'>get_mut</a>(self, slice: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [T]</a>) -> <a class="enum" href="../../../../nom/lib/std/prelude/v1/v1/enum.Option.html" title="enum nom::lib::std::prelude::v1::v1::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [T]</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/slice/mod.rs.html#3069-3071' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a mutable reference to the output at this location, if in bounds. <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_mut">Read more</a></p>
|
||
</div><h4 id='method.get_unchecked' class="method hidden"><code id='get_unchecked.v'>unsafe fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_unchecked' class='fnname'>get_unchecked</a>(self, slice: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[T]</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[T]</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/slice/mod.rs.html#3074-3076' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a shared reference to the output at this location, without performing any bounds checking. Calling this method with an out-of-bounds index is [undefined behavior] even if the resulting reference is not used. [undefined behavior]: ../../reference/behavior-considered-undefined.html <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_unchecked">Read more</a></p>
|
||
</div><h4 id='method.get_unchecked_mut' class="method hidden"><code id='get_unchecked_mut.v'>unsafe fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_unchecked_mut' class='fnname'>get_unchecked_mut</a>(self, slice: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [T]</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [T]</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/slice/mod.rs.html#3079-3081' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a mutable reference to the output at this location, without performing any bounds checking. Calling this method with an out-of-bounds index is [undefined behavior] even if the resulting reference is not used. [undefined behavior]: ../../reference/behavior-considered-undefined.html <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_unchecked_mut">Read more</a></p>
|
||
</div><h4 id='method.index' class="method hidden"><code id='index.v'>fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.index' class='fnname'>index</a>(self, slice: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[T]</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[T]</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/slice/mod.rs.html#3084-3086' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a shared reference to the output at this location, panicking if out of bounds. <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.index">Read more</a></p>
|
||
</div><h4 id='method.index_mut' class="method hidden"><code id='index_mut.v'>fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.index_mut' class='fnname'>index_mut</a>(self, slice: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [T]</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [T]</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/slice/mod.rs.html#3089-3091' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a mutable reference to the output at this location, panicking if out of bounds. <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.index_mut">Read more</a></p>
|
||
</div></div><h3 id='impl-SliceIndex%3Cstr%3E' class='impl'><code class='in-band'>impl <a class="trait" href="../../../../nom/lib/std/slice/trait.SliceIndex.html" title="trait nom::lib::std::slice::SliceIndex">SliceIndex</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code><a href='#impl-SliceIndex%3Cstr%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2138-2170' title='goto source code'>[src]</a></h3><div class='docblock'><p>Implements substring slicing with syntax <code>&self[..= end]</code> or <code>&mut self[..= end]</code>.</p>
|
||
<p>Returns a slice of the given string from the byte range [0, <code>end</code>].
|
||
Equivalent to <code>&self [0 .. end + 1]</code>, except if <code>end</code> has the maximum
|
||
value for <code>usize</code>.</p>
|
||
<p>This operation is <code>O(1)</code>.</p>
|
||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||
<p>Panics if <code>end</code> does not point to the ending byte offset of a character
|
||
(<code>end + 1</code> is either a starting byte offset as defined by
|
||
<code>is_char_boundary</code>, or equal to <code>len</code>), or if <code>end >= len</code>.</p>
|
||
</div><div class='impl-items'><h4 id='associatedtype.Output-1' class="type"><code id='Output.t-1'>type <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></h4><div class='docblock'><p>The output type returned by methods.</p>
|
||
</div><h4 id='method.get-1' class="method hidden"><code id='get.v-1'>fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get' class='fnname'>get</a>(<br> self, <br> slice: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="../../../../nom/lib/std/prelude/v1/v1/enum.Option.html" title="enum nom::lib::std::prelude::v1::v1::Option">Option</a><&<<a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> as <a class="trait" href="../../../../nom/lib/std/slice/trait.SliceIndex.html" title="trait nom::lib::std::slice::SliceIndex">SliceIndex</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>::<a class="type" href="../../../../nom/lib/std/slice/trait.SliceIndex.html#associatedtype.Output" title="type nom::lib::std::slice::SliceIndex::Output">Output</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2141-2143' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a shared reference to the output at this location, if in bounds. <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get">Read more</a></p>
|
||
</div><h4 id='method.get_mut-1' class="method hidden"><code id='get_mut.v-1'>fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_mut' class='fnname'>get_mut</a>(<br> self, <br> slice: &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="../../../../nom/lib/std/prelude/v1/v1/enum.Option.html" title="enum nom::lib::std::prelude::v1::v1::Option">Option</a><&mut <<a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> as <a class="trait" href="../../../../nom/lib/std/slice/trait.SliceIndex.html" title="trait nom::lib::std::slice::SliceIndex">SliceIndex</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>::<a class="type" href="../../../../nom/lib/std/slice/trait.SliceIndex.html#associatedtype.Output" title="type nom::lib::std::slice::SliceIndex::Output">Output</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2145-2147' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a mutable reference to the output at this location, if in bounds. <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_mut">Read more</a></p>
|
||
</div><h4 id='method.get_unchecked-1' class="method hidden"><code id='get_unchecked.v-1'>unsafe fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_unchecked' class='fnname'>get_unchecked</a>(<br> self, <br> slice: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> &<<a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> as <a class="trait" href="../../../../nom/lib/std/slice/trait.SliceIndex.html" title="trait nom::lib::std::slice::SliceIndex">SliceIndex</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>::<a class="type" href="../../../../nom/lib/std/slice/trait.SliceIndex.html#associatedtype.Output" title="type nom::lib::std::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2149-2151' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a shared reference to the output at this location, without performing any bounds checking. Calling this method with an out-of-bounds index is [undefined behavior] even if the resulting reference is not used. [undefined behavior]: ../../reference/behavior-considered-undefined.html <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_unchecked">Read more</a></p>
|
||
</div><h4 id='method.get_unchecked_mut-1' class="method hidden"><code id='get_unchecked_mut.v-1'>unsafe fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_unchecked_mut' class='fnname'>get_unchecked_mut</a>(<br> self, <br> slice: &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> &mut <<a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> as <a class="trait" href="../../../../nom/lib/std/slice/trait.SliceIndex.html" title="trait nom::lib::std::slice::SliceIndex">SliceIndex</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>::<a class="type" href="../../../../nom/lib/std/slice/trait.SliceIndex.html#associatedtype.Output" title="type nom::lib::std::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2153-2155' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a mutable reference to the output at this location, without performing any bounds checking. Calling this method with an out-of-bounds index is [undefined behavior] even if the resulting reference is not used. [undefined behavior]: ../../reference/behavior-considered-undefined.html <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.get_unchecked_mut">Read more</a></p>
|
||
</div><h4 id='method.index-1' class="method hidden"><code id='index.v-1'>fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.index' class='fnname'>index</a>(<br> self, <br> slice: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> &<<a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> as <a class="trait" href="../../../../nom/lib/std/slice/trait.SliceIndex.html" title="trait nom::lib::std::slice::SliceIndex">SliceIndex</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>::<a class="type" href="../../../../nom/lib/std/slice/trait.SliceIndex.html#associatedtype.Output" title="type nom::lib::std::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2157-2162' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a shared reference to the output at this location, panicking if out of bounds. <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.index">Read more</a></p>
|
||
</div><h4 id='method.index_mut-1' class="method hidden"><code id='index_mut.v-1'>fn <a href='../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.index_mut' class='fnname'>index_mut</a>(<br> self, <br> slice: &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> &mut <<a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> as <a class="trait" href="../../../../nom/lib/std/slice/trait.SliceIndex.html" title="trait nom::lib::std::slice::SliceIndex">SliceIndex</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>::<a class="type" href="../../../../nom/lib/std/slice/trait.SliceIndex.html#associatedtype.Output" title="type nom::lib::std::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2164-2169' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>)</div></div><div class='docblock hidden'><p>Returns a mutable reference to the output at this location, panicking if out of bounds. <a href="../../../../nom/lib/std/slice/trait.SliceIndex.html#tymethod.index_mut">Read more</a></p>
|
||
</div></div><h3 id='impl-StructuralEq' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx></code><a href='#impl-StructuralEq' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#583' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-StructuralPartialEq' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx></code><a href='#impl-StructuralPartialEq' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/ops/range.rs.html#583' title='goto source code'>[src]</a></h3><div class='impl-items'></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>, </span></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Send.html" title="trait nom::lib::std::prelude::v1::v1::Send">Send</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Send.html" title="trait nom::lib::std::prelude::v1::v1::Send">Send</a>, </span></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Sync.html" title="trait nom::lib::std::prelude::v1::v1::Sync">Sync</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Sync.html" title="trait nom::lib::std::prelude::v1::v1::Sync">Sync</a>, </span></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Unpin.html" title="trait nom::lib::std::prelude::v1::v1::Unpin">Unpin</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Unpin.html" title="trait nom::lib::std::prelude::v1::v1::Unpin">Unpin</a>, </span></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl<Idx> <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../../nom/lib/std/ops/struct.RangeToInclusive.html" title="struct nom::lib::std::ops::RangeToInclusive">RangeToInclusive</a><Idx> <span class="where fmt-newline">where<br> Idx: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>, </span></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Sized.html" title="trait nom::lib::std::prelude::v1::v1::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Sized.html" title="trait nom::lib::std::prelude::v1::v1::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Sized.html" title="trait nom::lib::std::prelude::v1::v1::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.From.html" title="trait nom::lib::std::prelude::v1::v1::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='../../../../nom/lib/std/prelude/v1/v1/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Into.html" title="trait nom::lib::std::prelude::v1::v1::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.From.html" title="trait nom::lib::std::prelude::v1::v1::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='../../../../nom/lib/std/prelude/v1/v1/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.ToOwned.html" title="trait nom::lib::std::prelude::v1::v1::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Clone.html" title="trait nom::lib::std::prelude::v1::v1::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='../../../../nom/lib/std/prelude/v1/v1/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='../../../../nom/lib/std/prelude/v1/v1/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="../../../../nom/lib/std/prelude/v1/v1/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='../../../../nom/lib/std/prelude/v1/v1/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="../../../../nom/lib/std/prelude/v1/v1/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="../../../../nom/lib/std/convert/trait.TryFrom.html" title="trait nom::lib::std::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="../../../../nom/lib/std/prelude/v1/v1/trait.Into.html" title="trait nom::lib::std::prelude::v1::v1::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='../../../../nom/lib/std/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="../../../../nom/lib/std/convert/enum.Infallible.html" title="enum nom::lib::std::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='../../../../nom/lib/std/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="../../../../nom/lib/std/prelude/v1/v1/enum.Result.html" title="enum nom::lib::std::prelude::v1::v1::Result">Result</a><T, <T as <a class="trait" href="../../../../nom/lib/std/convert/trait.TryFrom.html" title="trait nom::lib::std::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="../../../../nom/lib/std/convert/trait.TryFrom.html#associatedtype.Error" title="type nom::lib::std::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="../../../../nom/lib/std/convert/trait.TryInto.html" title="trait nom::lib::std::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="../../../../nom/lib/std/convert/trait.TryFrom.html" title="trait nom::lib::std::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='../../../../nom/lib/std/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="../../../../nom/lib/std/convert/trait.TryFrom.html" title="trait nom::lib::std::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="../../../../nom/lib/std/convert/trait.TryFrom.html#associatedtype.Error" title="type nom::lib::std::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='../../../../nom/lib/std/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="../../../../nom/lib/std/prelude/v1/v1/enum.Result.html" title="enum nom::lib::std::prelude::v1::v1::Result">Result</a><U, <U as <a class="trait" href="../../../../nom/lib/std/convert/trait.TryFrom.html" title="trait nom::lib::std::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="../../../../nom/lib/std/convert/trait.TryFrom.html#associatedtype.Error" title="type nom::lib::std::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></div></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> |