Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 0c2243f8a1696816431e7210e991fa52 > files > 12307

rust-doc-1.35.0-1.mga7.armv7hl.rpm

<!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 `SliceIndex` trait in crate `core`."><meta name="keywords" content="rust, rustlang, rust-lang, SliceIndex"><title>core::slice::SliceIndex - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize1.35.0.css"><link rel="stylesheet" type="text/css" href="../../rustdoc1.35.0.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark1.35.0.css"><link rel="stylesheet" type="text/css" href="../../light1.35.0.css" id="themeStyle"><script src="../../storage1.35.0.js"></script><noscript><link rel="stylesheet" href="../../noscript1.35.0.css"></noscript><link rel="shortcut icon" href="../../favicon1.35.0.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow1.35.0.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">&#9776;</div><a href='../../core/index.html'><img src='../../rust-logo1.35.0.png' alt='logo' width='100'></a><p class='location'>Trait SliceIndex</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.Output">Output</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.get">get</a><a href="#tymethod.get_mut">get_mut</a><a href="#tymethod.get_unchecked">get_unchecked</a><a href="#tymethod.get_unchecked_mut">get_unchecked_mut</a><a href="#tymethod.index">index</a><a href="#tymethod.index_mut">index_mut</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>core</a>::<wbr><a href='index.html'>slice</a></p><script>window.sidebarCurrent = {name: 'SliceIndex', 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="../../brush1.35.0.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme1.35.0.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" 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="../../wheel1.35.0.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.28.0'>1.28.0</span><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/core/slice/mod.rs.html#2611-2645' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../index.html'>core</a>::<wbr><a href='index.html'>slice</a>::<wbr><a class="trait" href=''>SliceIndex</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait SliceIndex&lt;T:&nbsp;?<a class="trait" href="../../core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt;: Sealed {
    type <a href='#associatedtype.Output' class="type">Output</a>: ?<a class="trait" href="../../core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>;
    fn <a href='#tymethod.get' class='fnname'>get</a>(self, slice: &amp;T) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;;
<div class='item-spacer'></div>    fn <a href='#tymethod.get_mut' class='fnname'>get_mut</a>(self, slice: &amp;mut T) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;;
<div class='item-spacer'></div>    unsafe fn <a href='#tymethod.get_unchecked' class='fnname'>get_unchecked</a>(self, slice: &amp;T) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>;
<div class='item-spacer'></div>    unsafe fn <a href='#tymethod.get_unchecked_mut' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut T) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>;
<div class='item-spacer'></div>    fn <a href='#tymethod.index' class='fnname'>index</a>(self, slice: &amp;T) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>;
<div class='item-spacer'></div>    fn <a href='#tymethod.index_mut' class='fnname'>index_mut</a>(self, slice: &amp;mut T) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>;
}</pre></div><div class='docblock'><p>A helper trait used for indexing operations.</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.Output' class='method'><code id='Output.t'>type <a href='#associatedtype.Output' class="type">Output</a>: ?<a class="trait" href="../../core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></code></h3><div class='docblock'><p>The output type returned by methods.</p>
</div></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.get' class='method'><code id='get.v'>fn <a href='#tymethod.get' class='fnname'>get</a>(self, slice: &amp;T) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code></h3><div class='stability'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><div class='docblock'><p>Returns a shared reference to the output at this location, if in
bounds.</p>
</div><h3 id='tymethod.get_mut' class='method'><code id='get_mut.v'>fn <a href='#tymethod.get_mut' class='fnname'>get_mut</a>(self, slice: &amp;mut T) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code></h3><div class='stability'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><div class='docblock'><p>Returns a mutable reference to the output at this location, if in
bounds.</p>
</div><h3 id='tymethod.get_unchecked' class='method'><code id='get_unchecked.v'>unsafe fn <a href='#tymethod.get_unchecked' class='fnname'>get_unchecked</a>(self, slice: &amp;T) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code></h3><div class='stability'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><div class='docblock'><p>Returns a shared reference to the output at this location, without
performing any bounds checking.</p>
</div><h3 id='tymethod.get_unchecked_mut' class='method'><code id='get_unchecked_mut.v'>unsafe fn <a href='#tymethod.get_unchecked_mut' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut T) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code></h3><div class='stability'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><div class='docblock'><p>Returns a mutable reference to the output at this location, without
performing any bounds checking.</p>
</div><h3 id='tymethod.index' class='method'><code id='index.v'>fn <a href='#tymethod.index' class='fnname'>index</a>(self, slice: &amp;T) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code></h3><div class='stability'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><div class='docblock'><p>Returns a shared reference to the output at this location, panicking
if out of bounds.</p>
</div><h3 id='tymethod.index_mut' class='method'><code id='index_mut.v'>fn <a href='#tymethod.index_mut' class='fnname'>index_mut</a>(self, slice: &amp;mut T) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code></h3><div class='stability'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>slice_index_methods</code>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><div class='docblock'><p>Returns a mutable reference to the output at this location, panicking
if out of bounds.</p>
</div></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-SliceIndex%3Cstr%3E' class='impl'><code class='in-band'>impl SliceIndex&lt;str&gt; for <a class="struct" href="../../core/ops/struct.Range.html" title="struct core::ops::Range">Range</a>&lt;usize&gt;</code><a href='#impl-SliceIndex%3Cstr%3E' class='anchor'></a><a class='srclink' href='../../src/core/str/mod.rs.html#1714-1765' title='goto source code'>[src]</a></h3><div class='docblock'><p>Implements substring slicing with syntax <code>&amp;self[begin .. end]</code> or <code>&amp;mut self[begin .. end]</code>.</p>
<p>Returns a slice of the given string from the byte range
[<code>begin</code>, <code>end</code>).</p>
<p>This operation is <code>O(1)</code>.</p>
<p>Prior to 1.20.0, these indexing operations were still supported by
direct implementation of <code>Index</code> and <code>IndexMut</code>.</p>
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
<p>Panics if <code>begin</code> or <code>end</code> does not point to the starting byte offset of
a character (as defined by <code>is_char_boundary</code>), if <code>begin &gt; end</code>, or if
<code>end &gt; len</code>.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">s</span> <span class="op">=</span> <span class="string">&quot;Löwe 老虎 Léopard&quot;</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="kw-2">&amp;</span><span class="ident">s</span>[<span class="number">0</span> .. <span class="number">1</span>], <span class="string">&quot;L&quot;</span>);

<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="kw-2">&amp;</span><span class="ident">s</span>[<span class="number">1</span> .. <span class="number">9</span>], <span class="string">&quot;öwe 老&quot;</span>);

<span class="comment">// these will panic:</span>
<span class="comment">// byte 2 lies within `ö`:</span>
<span class="comment">// &amp;s[2 ..3];</span>

<span class="comment">// byte 8 lies within `老`</span>
<span class="comment">// &amp;s[1 .. 8];</span>

<span class="comment">// byte 100 is outside the string</span>
<span class="comment">// &amp;s[3 .. 100];</span><a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Alet%20s%20%3D%20%22L%C3%B6we%20%E8%80%81%E8%99%8E%20L%C3%A9opard%22%3B%0Aassert_eq!(%26s%5B0%20..%201%5D%2C%20%22L%22)%3B%0A%0Aassert_eq!(%26s%5B1%20..%209%5D%2C%20%22%C3%B6we%20%E8%80%81%22)%3B%0A%0A%2F%2F%20these%20will%20panic%3A%0A%2F%2F%20byte%202%20lies%20within%20%60%C3%B6%60%3A%0A%2F%2F%20%26s%5B2%20..3%5D%3B%0A%0A%2F%2F%20byte%208%20lies%20within%20%60%E8%80%81%60%0A%2F%2F%20%26s%5B1%20..%208%5D%3B%0A%0A%2F%2F%20byte%20100%20is%20outside%20the%20string%0A%2F%2F%20%26s%5B3%20..%20100%5D%3B%0A%7D">Run</a></pre></div>
</div><div class='impl-items'><h4 id='associatedtype.Output-1' class="type"><code id='Output.t-1'>type <a href='#associatedtype.Output-1' class="type">Output</a> = str</code></h4><h4 id='method.get' class="method hidden"><code id='get.v-1'>fn <a href='#method.get' class='fnname'>get</a>(self, slice: &amp;str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1717-1725' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut' class="method hidden"><code id='get_mut.v-1'>fn <a href='#method.get_mut' class='fnname'>get_mut</a>(self, slice: &amp;mut str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1727-1735' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked' class="method hidden"><code id='get_unchecked.v-1'>unsafe fn <a href='#method.get_unchecked' class='fnname'>get_unchecked</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1737-1741' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut' class="method hidden"><code id='get_unchecked_mut.v-1'>unsafe fn <a href='#method.get_unchecked_mut' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1743-1747' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index' class="method hidden"><code id='index.v-1'>fn <a href='#method.index' class='fnname'>index</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1749-1752' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut' class="method hidden"><code id='index_mut.v-1'>fn <a href='#method.index_mut' class='fnname'>index_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1754-1764' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3Cstr%3E-1' class='impl'><code class='in-band'>impl SliceIndex&lt;str&gt; for <a class="struct" href="../../core/ops/struct.RangeFrom.html" title="struct core::ops::RangeFrom">RangeFrom</a>&lt;usize&gt;</code><a href='#impl-SliceIndex%3Cstr%3E-1' class='anchor'></a><a class='srclink' href='../../src/core/str/mod.rs.html#1844-1888' title='goto source code'>[src]</a></h3><div class='docblock'><p>Implements substring slicing with syntax <code>&amp;self[begin ..]</code> or <code>&amp;mut self[begin ..]</code>.</p>
<p>Returns a slice of the given string from the byte range [<code>begin</code>,
<code>len</code>). Equivalent to <code>&amp;self[begin .. len]</code> or <code>&amp;mut self[begin .. len]</code>.</p>
<p>This operation is <code>O(1)</code>.</p>
<p>Prior to 1.20.0, these indexing operations were still supported by
direct implementation of <code>Index</code> and <code>IndexMut</code>.</p>
<h1 id="panics-1" class="section-header"><a href="#panics-1">Panics</a></h1>
<p>Panics if <code>begin</code> does not point to the starting byte offset of
a character (as defined by <code>is_char_boundary</code>), or if <code>begin &gt;= len</code>.</p>
</div><div class='impl-items'><h4 id='associatedtype.Output-2' class="type"><code id='Output.t-2'>type <a href='#associatedtype.Output-2' class="type">Output</a> = str</code></h4><h4 id='method.get-1' class="method hidden"><code id='get.v-2'>fn <a href='#method.get-1' class='fnname'>get</a>(self, slice: &amp;str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1847-1853' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-1' class="method hidden"><code id='get_mut.v-2'>fn <a href='#method.get_mut-1' class='fnname'>get_mut</a>(self, slice: &amp;mut str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1855-1861' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-1' class="method hidden"><code id='get_unchecked.v-2'>unsafe fn <a href='#method.get_unchecked-1' class='fnname'>get_unchecked</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1863-1867' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-1' class="method hidden"><code id='get_unchecked_mut.v-2'>unsafe fn <a href='#method.get_unchecked_mut-1' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1869-1873' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-1' class="method hidden"><code id='index.v-2'>fn <a href='#method.index-1' class='fnname'>index</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1875-1878' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-1' class="method hidden"><code id='index_mut.v-2'>fn <a href='#method.index_mut-1' class='fnname'>index_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1880-1887' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3Cstr%3E-2' class='impl'><code class='in-band'>impl SliceIndex&lt;str&gt; for <a class="struct" href="../../core/ops/struct.RangeFull.html" title="struct core::ops::RangeFull">RangeFull</a></code><a href='#impl-SliceIndex%3Cstr%3E-2' class='anchor'></a><a class='srclink' href='../../src/core/str/mod.rs.html#1650-1676' title='goto source code'>[src]</a></h3><div class='docblock'><p>Implements substring slicing with syntax <code>&amp;self[..]</code> or <code>&amp;mut self[..]</code>.</p>
<p>Returns a slice of the whole string, i.e., returns <code>&amp;self</code> or <code>&amp;mut self</code>. Equivalent to <code>&amp;self[0 .. len]</code> or <code>&amp;mut self[0 .. len]</code>. Unlike
other indexing operations, this can never panic.</p>
<p>This operation is <code>O(1)</code>.</p>
<p>Prior to 1.20.0, these indexing operations were still supported by
direct implementation of <code>Index</code> and <code>IndexMut</code>.</p>
<p>Equivalent to <code>&amp;self[0 .. len]</code> or <code>&amp;mut self[0 .. len]</code>.</p>
</div><div class='impl-items'><h4 id='associatedtype.Output-3' class="type"><code id='Output.t-3'>type <a href='#associatedtype.Output-3' class="type">Output</a> = str</code></h4><h4 id='method.get-2' class="method hidden"><code id='get.v-3'>fn <a href='#method.get-2' class='fnname'>get</a>(self, slice: &amp;str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1653-1655' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-2' class="method hidden"><code id='get_mut.v-3'>fn <a href='#method.get_mut-2' class='fnname'>get_mut</a>(self, slice: &amp;mut str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1657-1659' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-2' class="method hidden"><code id='get_unchecked.v-3'>unsafe fn <a href='#method.get_unchecked-2' class='fnname'>get_unchecked</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1661-1663' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-2' class="method hidden"><code id='get_unchecked_mut.v-3'>unsafe fn <a href='#method.get_unchecked_mut-2' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1665-1667' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-2' class="method hidden"><code id='index.v-3'>fn <a href='#method.index-2' class='fnname'>index</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1669-1671' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-2' class="method hidden"><code id='index_mut.v-3'>fn <a href='#method.index_mut-2' class='fnname'>index_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1673-1675' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3Cstr%3E-3' class='impl'><code class='in-band'>impl SliceIndex&lt;str&gt; for <a class="struct" href="../../core/ops/struct.RangeInclusive.html" title="struct core::ops::RangeInclusive">RangeInclusive</a>&lt;usize&gt;</code><a href='#impl-SliceIndex%3Cstr%3E-3' class='anchor'></a><a class='srclink' href='../../src/core/str/mod.rs.html#1907-1937' title='goto source code'>[src]</a></h3><div class='docblock'><p>Implements substring slicing with syntax <code>&amp;self[begin ..= end]</code> or <code>&amp;mut self[begin ..= end]</code>.</p>
<p>Returns a slice of the given string from the byte range
[<code>begin</code>, <code>end</code>]. Equivalent to <code>&amp;self [begin .. end + 1]</code> or <code>&amp;mut self[begin .. 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-2" class="section-header"><a href="#panics-2">Panics</a></h1>
<p>Panics if <code>begin</code> does not point to the starting byte offset of
a character (as defined by <code>is_char_boundary</code>), 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 or equal to <code>len</code>), if <code>begin &gt; end</code>, or if <code>end &gt;= len</code>.</p>
</div><div class='impl-items'><h4 id='associatedtype.Output-4' class="type"><code id='Output.t-4'>type <a href='#associatedtype.Output-4' class="type">Output</a> = str</code></h4><h4 id='method.get-3' class="method hidden"><code id='get.v-4'>fn <a href='#method.get-3' class='fnname'>get</a>(self, slice: &amp;str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1910-1913' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-3' class="method hidden"><code id='get_mut.v-4'>fn <a href='#method.get_mut-3' class='fnname'>get_mut</a>(self, slice: &amp;mut str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1915-1918' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-3' class="method hidden"><code id='get_unchecked.v-4'>unsafe fn <a href='#method.get_unchecked-3' class='fnname'>get_unchecked</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1920-1922' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-3' class="method hidden"><code id='get_unchecked_mut.v-4'>unsafe fn <a href='#method.get_unchecked_mut-3' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1924-1926' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-3' class="method hidden"><code id='index.v-4'>fn <a href='#method.index-3' class='fnname'>index</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1928-1931' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-3' class="method hidden"><code id='index_mut.v-4'>fn <a href='#method.index_mut-3' class='fnname'>index_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1933-1936' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3Cstr%3E-4' class='impl'><code class='in-band'>impl SliceIndex&lt;str&gt; for <a class="struct" href="../../core/ops/struct.RangeTo.html" title="struct core::ops::RangeTo">RangeTo</a>&lt;usize&gt;</code><a href='#impl-SliceIndex%3Cstr%3E-4' class='anchor'></a><a class='srclink' href='../../src/core/str/mod.rs.html#1783-1825' title='goto source code'>[src]</a></h3><div class='docblock'><p>Implements substring slicing with syntax <code>&amp;self[.. end]</code> or <code>&amp;mut self[.. end]</code>.</p>
<p>Returns a slice of the given string from the byte range [<code>0</code>, <code>end</code>).
Equivalent to <code>&amp;self[0 .. end]</code> or <code>&amp;mut self[0 .. end]</code>.</p>
<p>This operation is <code>O(1)</code>.</p>
<p>Prior to 1.20.0, these indexing operations were still supported by
direct implementation of <code>Index</code> and <code>IndexMut</code>.</p>
<h1 id="panics-3" class="section-header"><a href="#panics-3">Panics</a></h1>
<p>Panics if <code>end</code> does not point to the starting byte offset of a
character (as defined by <code>is_char_boundary</code>), or if <code>end &gt; len</code>.</p>
</div><div class='impl-items'><h4 id='associatedtype.Output-5' class="type"><code id='Output.t-5'>type <a href='#associatedtype.Output-5' class="type">Output</a> = str</code></h4><h4 id='method.get-4' class="method hidden"><code id='get.v-5'>fn <a href='#method.get-4' class='fnname'>get</a>(self, slice: &amp;str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1786-1792' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-4' class="method hidden"><code id='get_mut.v-5'>fn <a href='#method.get_mut-4' class='fnname'>get_mut</a>(self, slice: &amp;mut str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1794-1800' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-4' class="method hidden"><code id='get_unchecked.v-5'>unsafe fn <a href='#method.get_unchecked-4' class='fnname'>get_unchecked</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1802-1805' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-4' class="method hidden"><code id='get_unchecked_mut.v-5'>unsafe fn <a href='#method.get_unchecked_mut-4' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1807-1810' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-4' class="method hidden"><code id='index.v-5'>fn <a href='#method.index-4' class='fnname'>index</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1812-1815' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-4' class="method hidden"><code id='index_mut.v-5'>fn <a href='#method.index_mut-4' class='fnname'>index_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1817-1824' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3Cstr%3E-5' class='impl'><code class='in-band'>impl SliceIndex&lt;str&gt; for <a class="struct" href="../../core/ops/struct.RangeToInclusive.html" title="struct core::ops::RangeToInclusive">RangeToInclusive</a>&lt;usize&gt;</code><a href='#impl-SliceIndex%3Cstr%3E-5' class='anchor'></a><a class='srclink' href='../../src/core/str/mod.rs.html#1954-1984' title='goto source code'>[src]</a></h3><div class='docblock'><p>Implements substring slicing with syntax <code>&amp;self[..= end]</code> or <code>&amp;mut self[..= end]</code>.</p>
<p>Returns a slice of the given string from the byte range [0, <code>end</code>].
Equivalent to <code>&amp;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-4" class="section-header"><a href="#panics-4">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 &gt;= len</code>.</p>
</div><div class='impl-items'><h4 id='associatedtype.Output-6' class="type"><code id='Output.t-6'>type <a href='#associatedtype.Output-6' class="type">Output</a> = str</code></h4><h4 id='method.get-5' class="method hidden"><code id='get.v-6'>fn <a href='#method.get-5' class='fnname'>get</a>(self, slice: &amp;str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1957-1960' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-5' class="method hidden"><code id='get_mut.v-6'>fn <a href='#method.get_mut-5' class='fnname'>get_mut</a>(self, slice: &amp;mut str) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a>&gt;</code><a class='srclink' href='../../src/core/str/mod.rs.html#1962-1965' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-5' class="method hidden"><code id='get_unchecked.v-6'>unsafe fn <a href='#method.get_unchecked-5' class='fnname'>get_unchecked</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1967-1969' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-5' class="method hidden"><code id='get_unchecked_mut.v-6'>unsafe fn <a href='#method.get_unchecked_mut-5' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1971-1973' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-5' class="method hidden"><code id='index.v-6'>fn <a href='#method.index-5' class='fnname'>index</a>(self, slice: &amp;str) -&gt; &amp;Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1975-1978' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-5' class="method hidden"><code id='index_mut.v-6'>fn <a href='#method.index_mut-5' class='fnname'>index_mut</a>(self, slice: &amp;mut str) -&gt; &amp;mut Self::<a class="type" href="../../core/slice/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::SliceIndex::Output">Output</a></code><a class='srclink' href='../../src/core/str/mod.rs.html#1980-1983' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3C%5BT%5D%3E' class='impl'><code class='in-band'>impl&lt;T&gt; SliceIndex&lt;[T]&gt; for <a class="struct" href="../../core/ops/struct.Range.html" title="struct core::ops::Range">Range</a>&lt;usize&gt;</code><a href='#impl-SliceIndex%3C%5BT%5D%3E' class='anchor'></a><a class='srclink' href='../../src/core/slice/mod.rs.html#2697-2755' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-7' class="type"><code id='Output.t-7'>type <a href='#associatedtype.Output-7' class="type">Output</a> = [T]</code></h4><h4 id='method.get-6' class="method hidden"><code id='get.v-7'>fn <a href='#method.get-6' class='fnname'>get</a>(self, slice: &amp;[T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;[T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2701-2709' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-6' class="method hidden"><code id='get_mut.v-7'>fn <a href='#method.get_mut-6' class='fnname'>get_mut</a>(self, slice: &amp;mut [T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut [T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2712-2720' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-6' class="method hidden"><code id='get_unchecked.v-7'>unsafe fn <a href='#method.get_unchecked-6' class='fnname'>get_unchecked</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2723-2725' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-6' class="method hidden"><code id='get_unchecked_mut.v-7'>unsafe fn <a href='#method.get_unchecked_mut-6' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2728-2730' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-6' class="method hidden"><code id='index.v-7'>fn <a href='#method.index-6' class='fnname'>index</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2733-2742' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-6' class="method hidden"><code id='index_mut.v-7'>fn <a href='#method.index_mut-6' class='fnname'>index_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2745-2754' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3C%5BT%5D%3E-1' class='impl'><code class='in-band'>impl&lt;T&gt; SliceIndex&lt;[T]&gt; for <a class="struct" href="../../core/ops/struct.RangeFrom.html" title="struct core::ops::RangeFrom">RangeFrom</a>&lt;usize&gt;</code><a href='#impl-SliceIndex%3C%5BT%5D%3E-1' class='anchor'></a><a class='srclink' href='../../src/core/slice/mod.rs.html#2793-2825' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-8' class="type"><code id='Output.t-8'>type <a href='#associatedtype.Output-8' class="type">Output</a> = [T]</code></h4><h4 id='method.get-7' class="method hidden"><code id='get.v-8'>fn <a href='#method.get-7' class='fnname'>get</a>(self, slice: &amp;[T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;[T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2797-2799' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-7' class="method hidden"><code id='get_mut.v-8'>fn <a href='#method.get_mut-7' class='fnname'>get_mut</a>(self, slice: &amp;mut [T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut [T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2802-2804' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-7' class="method hidden"><code id='get_unchecked.v-8'>unsafe fn <a href='#method.get_unchecked-7' class='fnname'>get_unchecked</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2807-2809' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-7' class="method hidden"><code id='get_unchecked_mut.v-8'>unsafe fn <a href='#method.get_unchecked_mut-7' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2812-2814' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-7' class="method hidden"><code id='index.v-8'>fn <a href='#method.index-7' class='fnname'>index</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2817-2819' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-7' class="method hidden"><code id='index_mut.v-8'>fn <a href='#method.index_mut-7' class='fnname'>index_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2822-2824' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3C%5BT%5D%3E-2' class='impl'><code class='in-band'>impl&lt;T&gt; SliceIndex&lt;[T]&gt; for <a class="struct" href="../../core/ops/struct.RangeFull.html" title="struct core::ops::RangeFull">RangeFull</a></code><a href='#impl-SliceIndex%3C%5BT%5D%3E-2' class='anchor'></a><a class='srclink' href='../../src/core/slice/mod.rs.html#2828-2860' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-9' class="type"><code id='Output.t-9'>type <a href='#associatedtype.Output-9' class="type">Output</a> = [T]</code></h4><h4 id='method.get-8' class="method hidden"><code id='get.v-9'>fn <a href='#method.get-8' class='fnname'>get</a>(self, slice: &amp;[T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;[T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2832-2834' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-8' class="method hidden"><code id='get_mut.v-9'>fn <a href='#method.get_mut-8' class='fnname'>get_mut</a>(self, slice: &amp;mut [T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut [T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2837-2839' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-8' class="method hidden"><code id='get_unchecked.v-9'>unsafe fn <a href='#method.get_unchecked-8' class='fnname'>get_unchecked</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2842-2844' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-8' class="method hidden"><code id='get_unchecked_mut.v-9'>unsafe fn <a href='#method.get_unchecked_mut-8' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2847-2849' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-8' class="method hidden"><code id='index.v-9'>fn <a href='#method.index-8' class='fnname'>index</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2852-2854' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-8' class="method hidden"><code id='index_mut.v-9'>fn <a href='#method.index_mut-8' class='fnname'>index_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2857-2859' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3C%5BT%5D%3E-3' class='impl'><code class='in-band'>impl&lt;T&gt; SliceIndex&lt;[T]&gt; for <a class="struct" href="../../core/ops/struct.RangeInclusive.html" title="struct core::ops::RangeInclusive">RangeInclusive</a>&lt;usize&gt;</code><a href='#impl-SliceIndex%3C%5BT%5D%3E-3' class='anchor'></a><a class='srclink' href='../../src/core/slice/mod.rs.html#2864-2900' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-10' class="type"><code id='Output.t-10'>type <a href='#associatedtype.Output-10' class="type">Output</a> = [T]</code></h4><h4 id='method.get-9' class="method hidden"><code id='get.v-10'>fn <a href='#method.get-9' class='fnname'>get</a>(self, slice: &amp;[T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;[T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2868-2871' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-9' class="method hidden"><code id='get_mut.v-10'>fn <a href='#method.get_mut-9' class='fnname'>get_mut</a>(self, slice: &amp;mut [T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut [T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2874-2877' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-9' class="method hidden"><code id='get_unchecked.v-10'>unsafe fn <a href='#method.get_unchecked-9' class='fnname'>get_unchecked</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2880-2882' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-9' class="method hidden"><code id='get_unchecked_mut.v-10'>unsafe fn <a href='#method.get_unchecked_mut-9' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2885-2887' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-9' class="method hidden"><code id='index.v-10'>fn <a href='#method.index-9' class='fnname'>index</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2890-2893' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-9' class="method hidden"><code id='index_mut.v-10'>fn <a href='#method.index_mut-9' class='fnname'>index_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2896-2899' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3C%5BT%5D%3E-4' class='impl'><code class='in-band'>impl&lt;T&gt; SliceIndex&lt;[T]&gt; for <a class="struct" href="../../core/ops/struct.RangeTo.html" title="struct core::ops::RangeTo">RangeTo</a>&lt;usize&gt;</code><a href='#impl-SliceIndex%3C%5BT%5D%3E-4' class='anchor'></a><a class='srclink' href='../../src/core/slice/mod.rs.html#2758-2790' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-11' class="type"><code id='Output.t-11'>type <a href='#associatedtype.Output-11' class="type">Output</a> = [T]</code></h4><h4 id='method.get-10' class="method hidden"><code id='get.v-11'>fn <a href='#method.get-10' class='fnname'>get</a>(self, slice: &amp;[T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;[T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2762-2764' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-10' class="method hidden"><code id='get_mut.v-11'>fn <a href='#method.get_mut-10' class='fnname'>get_mut</a>(self, slice: &amp;mut [T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut [T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2767-2769' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-10' class="method hidden"><code id='get_unchecked.v-11'>unsafe fn <a href='#method.get_unchecked-10' class='fnname'>get_unchecked</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2772-2774' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-10' class="method hidden"><code id='get_unchecked_mut.v-11'>unsafe fn <a href='#method.get_unchecked_mut-10' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2777-2779' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-10' class="method hidden"><code id='index.v-11'>fn <a href='#method.index-10' class='fnname'>index</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2782-2784' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-10' class="method hidden"><code id='index_mut.v-11'>fn <a href='#method.index_mut-10' class='fnname'>index_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2787-2789' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3C%5BT%5D%3E-5' class='impl'><code class='in-band'>impl&lt;T&gt; SliceIndex&lt;[T]&gt; for <a class="struct" href="../../core/ops/struct.RangeToInclusive.html" title="struct core::ops::RangeToInclusive">RangeToInclusive</a>&lt;usize&gt;</code><a href='#impl-SliceIndex%3C%5BT%5D%3E-5' class='anchor'></a><a class='srclink' href='../../src/core/slice/mod.rs.html#2903-2935' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-12' class="type"><code id='Output.t-12'>type <a href='#associatedtype.Output-12' class="type">Output</a> = [T]</code></h4><h4 id='method.get-11' class="method hidden"><code id='get.v-12'>fn <a href='#method.get-11' class='fnname'>get</a>(self, slice: &amp;[T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;[T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2907-2909' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-11' class="method hidden"><code id='get_mut.v-12'>fn <a href='#method.get_mut-11' class='fnname'>get_mut</a>(self, slice: &amp;mut [T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut [T]&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2912-2914' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-11' class="method hidden"><code id='get_unchecked.v-12'>unsafe fn <a href='#method.get_unchecked-11' class='fnname'>get_unchecked</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2917-2919' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-11' class="method hidden"><code id='get_unchecked_mut.v-12'>unsafe fn <a href='#method.get_unchecked_mut-11' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2922-2924' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-11' class="method hidden"><code id='index.v-12'>fn <a href='#method.index-11' class='fnname'>index</a>(self, slice: &amp;[T]) -&gt; &amp;[T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2927-2929' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-11' class="method hidden"><code id='index_mut.v-12'>fn <a href='#method.index_mut-11' class='fnname'>index_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut [T]</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2932-2934' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div><h3 id='impl-SliceIndex%3C%5BT%5D%3E-6' class='impl'><code class='in-band'>impl&lt;T&gt; SliceIndex&lt;[T]&gt; for usize</code><a href='#impl-SliceIndex%3C%5BT%5D%3E-6' class='anchor'></a><a class='srclink' href='../../src/core/slice/mod.rs.html#2648-2694' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-13' class="type"><code id='Output.t-13'>type <a href='#associatedtype.Output-13' class="type">Output</a> = T</code></h4><h4 id='method.get-12' class="method hidden"><code id='get.v-13'>fn <a href='#method.get-12' class='fnname'>get</a>(self, slice: &amp;[T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;T&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2652-2660' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_mut-12' class="method hidden"><code id='get_mut.v-13'>fn <a href='#method.get_mut-12' class='fnname'>get_mut</a>(self, slice: &amp;mut [T]) -&gt; <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut T&gt;</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2663-2671' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked-12' class="method hidden"><code id='get_unchecked.v-13'>unsafe fn <a href='#method.get_unchecked-12' class='fnname'>get_unchecked</a>(self, slice: &amp;[T]) -&gt; &amp;T</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2674-2676' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.get_unchecked_mut-12' class="method hidden"><code id='get_unchecked_mut.v-13'>unsafe fn <a href='#method.get_unchecked_mut-12' class='fnname'>get_unchecked_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut T</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2679-2681' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index-12' class="method hidden"><code id='index.v-13'>fn <a href='#method.index-12' class='fnname'>index</a>(self, slice: &amp;[T]) -&gt; &amp;T</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2684-2687' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div><h4 id='method.index_mut-12' class="method hidden"><code id='index_mut.v-13'>fn <a href='#method.index_mut-12' class='fnname'>index_mut</a>(self, slice: &amp;mut [T]) -&gt; &amp;mut T</code><a class='srclink' href='../../src/core/slice/mod.rs.html#2690-2693' 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>&nbsp;<a href="https://github.com/rust-lang/rust/issues/0">#0</a>)</div></div></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
                         src="../../implementors/core/slice/trait.SliceIndex.js">
                 </script></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><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../";window.currentCrate = "core";</script><script src="../../aliases.js"></script><script src="../../main1.35.0.js"></script><script defer src="../../search-index.js"></script></body></html>