<!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 `SliceExt` trait in crate `core`."> <meta name="keywords" content="rust, rustlang, rust-lang, SliceExt"> <title>core::slice::SliceExt - Rust</title> <link rel="stylesheet" type="text/css" href="../../normalize.css"> <link rel="stylesheet" type="text/css" href="../../rustdoc.css"> <link rel="stylesheet" type="text/css" href="../../main.css"> <link rel="shortcut icon" href="https://doc.rust-lang.org/favicon.ico"> </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"> <a href='../../core/index.html'><img src='https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png' alt='logo' width='100'></a> <p class='location'>Trait SliceExt</p><div class="block items"><ul><li><a href="#associated-types">Associated Types</a></li><li><a href="#required-methods">Required Methods</a></li><li><a href="#provided-methods">Provided Methods</a></li><li><a href="#implementors">Implementors</a></li></ul></div><p class='location'><a href='../index.html'>core</a>::<wbr><a href='index.html'>slice</a></p><script>window.sidebarCurrent = {name: 'SliceExt', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script> </nav> <nav class="sub"> <form class="search-form js-only"> <div class="search-container"> <input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"> </div> </form> </nav> <section id='main' class="content"> <h1 class='fqn'><span class='in-band'>Trait <a href='../index.html'>core</a>::<wbr><a href='index.html'>slice</a>::<wbr><a class="trait" href=''>SliceExt</a></span><span class='out-of-band'><span class='since' title='Stable since Rust version '></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='../../src/core/slice/mod.rs.html#72-227' title='goto source code'>[src]</a></span></h1> <pre class='rust trait'>pub trait SliceExt { type <a href='#associatedtype.Item' class="type">Item</a>; fn <a href='#tymethod.split_at' class='fnname'>split_at</a>(&self, mid: usize) -> (&[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>], &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>]); fn <a href='#tymethod.iter' class='fnname'>iter</a>(&self) -> <a class="struct" href="../../core/slice/struct.Iter.html" title="struct core::slice::Iter">Iter</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>>; fn <a href='#tymethod.split' class='fnname'>split</a><P>(&self, pred: P) -> <a class="struct" href="../../core/slice/struct.Split.html" title="struct core::slice::Split">Split</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P><br> <span class="where">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool</span>; fn <a href='#tymethod.rsplit' class='fnname'>rsplit</a><P>(&self, pred: P) -> <a class="struct" href="../../core/slice/struct.RSplit.html" title="struct core::slice::RSplit">RSplit</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P><br> <span class="where">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool</span>; fn <a href='#tymethod.splitn' class='fnname'>splitn</a><P>(&self, n: usize, pred: P) -> <a class="struct" href="../../core/slice/struct.SplitN.html" title="struct core::slice::SplitN">SplitN</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P><br> <span class="where">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool</span>; fn <a href='#tymethod.rsplitn' class='fnname'>rsplitn</a><P>(&self, n: usize, pred: P) -> <a class="struct" href="../../core/slice/struct.RSplitN.html" title="struct core::slice::RSplitN">RSplitN</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P><br> <span class="where">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool</span>; fn <a href='#tymethod.windows' class='fnname'>windows</a>(&self, size: usize) -> <a class="struct" href="../../core/slice/struct.Windows.html" title="struct core::slice::Windows">Windows</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>>; fn <a href='#tymethod.chunks' class='fnname'>chunks</a>(&self, size: usize) -> <a class="struct" href="../../core/slice/struct.Chunks.html" title="struct core::slice::Chunks">Chunks</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>>; fn <a href='#tymethod.get' class='fnname'>get</a><I>(&self, index: I) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&I::<a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">Output</a>><br> <span class="where">where<br> I: <a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">SliceIndex</a><Self></span>; fn <a href='#tymethod.first' class='fnname'>first</a>(&self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>>; fn <a href='#tymethod.split_first' class='fnname'>split_first</a>(&self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])>; fn <a href='#tymethod.split_last' class='fnname'>split_last</a>(&self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])>; fn <a href='#tymethod.last' class='fnname'>last</a>(&self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>>; unsafe fn <a href='#tymethod.get_unchecked' class='fnname'>get_unchecked</a><I>(&self, index: I) -> &I::<a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">Output</a><br> <span class="where">where<br> I: <a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">SliceIndex</a><Self></span>; fn <a href='#tymethod.as_ptr' class='fnname'>as_ptr</a>(&self) -> *const Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>; fn <a href='#tymethod.binary_search' class='fnname'>binary_search</a><Q: ?<a class="trait" href="../../core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, x: &Q) -> <a class="enum" href="../../core/result/enum.Result.html" title="enum core::result::Result">Result</a><usize, usize><br> <span class="where">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q>,<br> Q: <a class="trait" href="../../core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a></span>; fn <a href='#tymethod.binary_search_by' class='fnname'>binary_search_by</a><'a, F>(&'a self, f: F) -> <a class="enum" href="../../core/result/enum.Result.html" title="enum core::result::Result">Result</a><usize, usize><br> <span class="where">where<br> F: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&'a Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> <a class="enum" href="../../core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></span>; fn <a href='#tymethod.binary_search_by_key' class='fnname'>binary_search_by_key</a><'a, B, F, Q: ?<a class="trait" href="../../core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(<br> &'a self, <br> b: &Q, <br> f: F<br> ) -> <a class="enum" href="../../core/result/enum.Result.html" title="enum core::result::Result">Result</a><usize, usize><br> <span class="where">where<br> F: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&'a Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> B,<br> B: <a class="trait" href="../../core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q>,<br> Q: <a class="trait" href="../../core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a></span>; fn <a href='#tymethod.len' class='fnname'>len</a>(&self) -> usize; fn <a href='#tymethod.get_mut' class='fnname'>get_mut</a><I>(&mut self, index: I) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut I::<a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">Output</a>><br> <span class="where">where<br> I: <a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">SliceIndex</a><Self></span>; fn <a href='#tymethod.iter_mut' class='fnname'>iter_mut</a>(&mut self) -> <a class="struct" href="../../core/slice/struct.IterMut.html" title="struct core::slice::IterMut">IterMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>>; fn <a href='#tymethod.first_mut' class='fnname'>first_mut</a>(&mut self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>>; fn <a href='#tymethod.split_first_mut' class='fnname'>split_first_mut</a>(<br> &mut self<br> ) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&mut Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, &mut [Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])>; fn <a href='#tymethod.split_last_mut' class='fnname'>split_last_mut</a>(&mut self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&mut Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, &mut [Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])>; fn <a href='#tymethod.last_mut' class='fnname'>last_mut</a>(&mut self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>>; fn <a href='#tymethod.split_mut' class='fnname'>split_mut</a><P>(&mut self, pred: P) -> <a class="struct" href="../../core/slice/struct.SplitMut.html" title="struct core::slice::SplitMut">SplitMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P><br> <span class="where">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool</span>; fn <a href='#tymethod.rsplit_mut' class='fnname'>rsplit_mut</a><P>(&mut self, pred: P) -> <a class="struct" href="../../core/slice/struct.RSplitMut.html" title="struct core::slice::RSplitMut">RSplitMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P><br> <span class="where">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool</span>; fn <a href='#tymethod.splitn_mut' class='fnname'>splitn_mut</a><P>(&mut self, n: usize, pred: P) -> <a class="struct" href="../../core/slice/struct.SplitNMut.html" title="struct core::slice::SplitNMut">SplitNMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P><br> <span class="where">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool</span>; fn <a href='#tymethod.rsplitn_mut' class='fnname'>rsplitn_mut</a><P>(&mut self, n: usize, pred: P) -> <a class="struct" href="../../core/slice/struct.RSplitNMut.html" title="struct core::slice::RSplitNMut">RSplitNMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P><br> <span class="where">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool</span>; fn <a href='#tymethod.chunks_mut' class='fnname'>chunks_mut</a>(&mut self, chunk_size: usize) -> <a class="struct" href="../../core/slice/struct.ChunksMut.html" title="struct core::slice::ChunksMut">ChunksMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>>; fn <a href='#tymethod.swap' class='fnname'>swap</a>(&mut self, a: usize, b: usize); fn <a href='#tymethod.split_at_mut' class='fnname'>split_at_mut</a>(<br> &mut self, <br> mid: usize<br> ) -> (&mut [Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>], &mut [Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>]); fn <a href='#tymethod.reverse' class='fnname'>reverse</a>(&mut self); unsafe fn <a href='#tymethod.get_unchecked_mut' class='fnname'>get_unchecked_mut</a><I>(&mut self, index: I) -> &mut I::<a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">Output</a><br> <span class="where">where<br> I: <a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">SliceIndex</a><Self></span>; fn <a href='#tymethod.as_mut_ptr' class='fnname'>as_mut_ptr</a>(&mut self) -> *mut Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>; fn <a href='#tymethod.contains' class='fnname'>contains</a>(&self, x: &Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool<br> <span class="where">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a></span>; fn <a href='#tymethod.starts_with' class='fnname'>starts_with</a>(&self, needle: &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>]) -> bool<br> <span class="where">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a></span>; fn <a href='#tymethod.ends_with' class='fnname'>ends_with</a>(&self, needle: &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>]) -> bool<br> <span class="where">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a></span>; fn <a href='#tymethod.rotate' class='fnname'>rotate</a>(&mut self, mid: usize); fn <a href='#tymethod.clone_from_slice' class='fnname'>clone_from_slice</a>(&mut self, src: &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])<br> <span class="where">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span>; fn <a href='#tymethod.copy_from_slice' class='fnname'>copy_from_slice</a>(&mut self, src: &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])<br> <span class="where">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a></span>; fn <a href='#tymethod.sort_unstable' class='fnname'>sort_unstable</a>(&mut self)<br> <span class="where">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a></span>; fn <a href='#tymethod.sort_unstable_by' class='fnname'>sort_unstable_by</a><F>(&mut self, compare: F)<br> <span class="where">where<br> F: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, &Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> <a class="enum" href="../../core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></span>; fn <a href='#tymethod.sort_unstable_by_key' class='fnname'>sort_unstable_by_key</a><B, F>(&mut self, f: F)<br> <span class="where">where<br> F: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> B,<br> B: <a class="trait" href="../../core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a></span>; fn <a href='#method.is_empty' class='fnname'>is_empty</a>(&self) -> bool { ... } }</pre><div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>core_slice_ext </code><a href="https://github.com/rust-lang/rust/issues/32110">#32110</a>)</summary><p>stable interface provided by <code>impl [T]</code> in later crates</p> </details></div></div><div class='docblock'><p>Extension methods for slices.</p> </div> <h2 id='associated-types'>Associated Types</h2> <div class='methods'> <h3 id='associatedtype.Item' class='method'><span id='Item.t' class='invisible'><code>type <a href='#associatedtype.Item' class="type">Item</a></code></span></h3><div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>core_slice_ext </code><a href="https://github.com/rust-lang/rust/issues/32110">#32110</a>)</summary><p>stable interface provided by <code>impl [T]</code> in later crates</p> </details></div></div></div> <h2 id='required-methods'>Required Methods</h2> <div class='methods'> <h3 id='tymethod.split_at' class='method'><span id='split_at.v' class='invisible'><code>fn <a href='#tymethod.split_at' class='fnname'>split_at</a>(&self, mid: usize) -> (&[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>], &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])</code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.iter' class='method'><span id='iter.v' class='invisible'><code>fn <a href='#tymethod.iter' class='fnname'>iter</a>(&self) -> <a class="struct" href="../../core/slice/struct.Iter.html" title="struct core::slice::Iter">Iter</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.split' class='method'><span id='split.v' class='invisible'><code>fn <a href='#tymethod.split' class='fnname'>split</a><P>(&self, pred: P) -> <a class="struct" href="../../core/slice/struct.Split.html" title="struct core::slice::Split">Split</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P> <span class="where fmt-newline">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.rsplit' class='method'><span id='rsplit.v' class='invisible'><code>fn <a href='#tymethod.rsplit' class='fnname'>rsplit</a><P>(&self, pred: P) -> <a class="struct" href="../../core/slice/struct.RSplit.html" title="struct core::slice::RSplit">RSplit</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P> <span class="where fmt-newline">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool, </span></code></span></h3><div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>slice_rsplit </code><a href="https://github.com/rust-lang/rust/issues/41020">#41020</a>)</div></div><h3 id='tymethod.splitn' class='method'><span id='splitn.v' class='invisible'><code>fn <a href='#tymethod.splitn' class='fnname'>splitn</a><P>(&self, n: usize, pred: P) -> <a class="struct" href="../../core/slice/struct.SplitN.html" title="struct core::slice::SplitN">SplitN</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P> <span class="where fmt-newline">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.rsplitn' class='method'><span id='rsplitn.v' class='invisible'><code>fn <a href='#tymethod.rsplitn' class='fnname'>rsplitn</a><P>(&self, n: usize, pred: P) -> <a class="struct" href="../../core/slice/struct.RSplitN.html" title="struct core::slice::RSplitN">RSplitN</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P> <span class="where fmt-newline">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.windows' class='method'><span id='windows.v' class='invisible'><code>fn <a href='#tymethod.windows' class='fnname'>windows</a>(&self, size: usize) -> <a class="struct" href="../../core/slice/struct.Windows.html" title="struct core::slice::Windows">Windows</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.chunks' class='method'><span id='chunks.v' class='invisible'><code>fn <a href='#tymethod.chunks' class='fnname'>chunks</a>(&self, size: usize) -> <a class="struct" href="../../core/slice/struct.Chunks.html" title="struct core::slice::Chunks">Chunks</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.get' class='method'><span id='get.v' class='invisible'><code>fn <a href='#tymethod.get' class='fnname'>get</a><I>(&self, index: I) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&I::<a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">Output</a>> <span class="where fmt-newline">where<br> I: <a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">SliceIndex</a><Self>, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.first' class='method'><span id='first.v' class='invisible'><code>fn <a href='#tymethod.first' class='fnname'>first</a>(&self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.split_first' class='method'><span id='split_first.v' class='invisible'><code>fn <a href='#tymethod.split_first' class='fnname'>split_first</a>(&self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.split_last' class='method'><span id='split_last.v' class='invisible'><code>fn <a href='#tymethod.split_last' class='fnname'>split_last</a>(&self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.last' class='method'><span id='last.v' class='invisible'><code>fn <a href='#tymethod.last' class='fnname'>last</a>(&self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.get_unchecked' class='method'><span id='get_unchecked.v' class='invisible'><code>unsafe fn <a href='#tymethod.get_unchecked' class='fnname'>get_unchecked</a><I>(&self, index: I) -> &I::<a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">Output</a> <span class="where fmt-newline">where<br> I: <a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">SliceIndex</a><Self>, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.as_ptr' class='method'><span id='as_ptr.v' class='invisible'><code>fn <a href='#tymethod.as_ptr' class='fnname'>as_ptr</a>(&self) -> *const Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.binary_search' class='method'><span id='binary_search.v' class='invisible'><code>fn <a href='#tymethod.binary_search' class='fnname'>binary_search</a><Q: ?<a class="trait" href="../../core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, x: &Q) -> <a class="enum" href="../../core/result/enum.Result.html" title="enum core::result::Result">Result</a><usize, usize> <span class="where fmt-newline">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q>,<br> Q: <a class="trait" href="../../core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.binary_search_by' class='method'><span id='binary_search_by.v' class='invisible'><code>fn <a href='#tymethod.binary_search_by' class='fnname'>binary_search_by</a><'a, F>(&'a self, f: F) -> <a class="enum" href="../../core/result/enum.Result.html" title="enum core::result::Result">Result</a><usize, usize> <span class="where fmt-newline">where<br> F: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&'a Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> <a class="enum" href="../../core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.binary_search_by_key' class='method'><span id='binary_search_by_key.v' class='invisible'><code>fn <a href='#tymethod.binary_search_by_key' class='fnname'>binary_search_by_key</a><'a, B, F, Q: ?<a class="trait" href="../../core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(<br> &'a self, <br> b: &Q, <br> f: F<br>) -> <a class="enum" href="../../core/result/enum.Result.html" title="enum core::result::Result">Result</a><usize, usize> <span class="where fmt-newline">where<br> F: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&'a Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> B,<br> B: <a class="trait" href="../../core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q>,<br> Q: <a class="trait" href="../../core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></code><div class='since' title='Stable since Rust version 1.10.0'>1.10.0</div></span></h3><h3 id='tymethod.len' class='method'><span id='len.v' class='invisible'><code>fn <a href='#tymethod.len' class='fnname'>len</a>(&self) -> usize</code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.get_mut' class='method'><span id='get_mut.v' class='invisible'><code>fn <a href='#tymethod.get_mut' class='fnname'>get_mut</a><I>(&mut self, index: I) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut I::<a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">Output</a>> <span class="where fmt-newline">where<br> I: <a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">SliceIndex</a><Self>, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.iter_mut' class='method'><span id='iter_mut.v' class='invisible'><code>fn <a href='#tymethod.iter_mut' class='fnname'>iter_mut</a>(&mut self) -> <a class="struct" href="../../core/slice/struct.IterMut.html" title="struct core::slice::IterMut">IterMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.first_mut' class='method'><span id='first_mut.v' class='invisible'><code>fn <a href='#tymethod.first_mut' class='fnname'>first_mut</a>(&mut self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.split_first_mut' class='method'><span id='split_first_mut.v' class='invisible'><code>fn <a href='#tymethod.split_first_mut' class='fnname'>split_first_mut</a>(&mut self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&mut Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, &mut [Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.split_last_mut' class='method'><span id='split_last_mut.v' class='invisible'><code>fn <a href='#tymethod.split_last_mut' class='fnname'>split_last_mut</a>(&mut self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&mut Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, &mut [Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.last_mut' class='method'><span id='last_mut.v' class='invisible'><code>fn <a href='#tymethod.last_mut' class='fnname'>last_mut</a>(&mut self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.split_mut' class='method'><span id='split_mut.v' class='invisible'><code>fn <a href='#tymethod.split_mut' class='fnname'>split_mut</a><P>(&mut self, pred: P) -> <a class="struct" href="../../core/slice/struct.SplitMut.html" title="struct core::slice::SplitMut">SplitMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P> <span class="where fmt-newline">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.rsplit_mut' class='method'><span id='rsplit_mut.v' class='invisible'><code>fn <a href='#tymethod.rsplit_mut' class='fnname'>rsplit_mut</a><P>(&mut self, pred: P) -> <a class="struct" href="../../core/slice/struct.RSplitMut.html" title="struct core::slice::RSplitMut">RSplitMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P> <span class="where fmt-newline">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool, </span></code></span></h3><div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>slice_rsplit </code><a href="https://github.com/rust-lang/rust/issues/41020">#41020</a>)</div></div><h3 id='tymethod.splitn_mut' class='method'><span id='splitn_mut.v' class='invisible'><code>fn <a href='#tymethod.splitn_mut' class='fnname'>splitn_mut</a><P>(&mut self, n: usize, pred: P) -> <a class="struct" href="../../core/slice/struct.SplitNMut.html" title="struct core::slice::SplitNMut">SplitNMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P> <span class="where fmt-newline">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.rsplitn_mut' class='method'><span id='rsplitn_mut.v' class='invisible'><code>fn <a href='#tymethod.rsplitn_mut' class='fnname'>rsplitn_mut</a><P>(&mut self, n: usize, pred: P) -> <a class="struct" href="../../core/slice/struct.RSplitNMut.html" title="struct core::slice::RSplitNMut">RSplitNMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, P> <span class="where fmt-newline">where<br> P: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.chunks_mut' class='method'><span id='chunks_mut.v' class='invisible'><code>fn <a href='#tymethod.chunks_mut' class='fnname'>chunks_mut</a>(&mut self, chunk_size: usize) -> <a class="struct" href="../../core/slice/struct.ChunksMut.html" title="struct core::slice::ChunksMut">ChunksMut</a><Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.swap' class='method'><span id='swap.v' class='invisible'><code>fn <a href='#tymethod.swap' class='fnname'>swap</a>(&mut self, a: usize, b: usize)</code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.split_at_mut' class='method'><span id='split_at_mut.v' class='invisible'><code>fn <a href='#tymethod.split_at_mut' class='fnname'>split_at_mut</a>(&mut self, mid: usize) -> (&mut [Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>], &mut [Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>])</code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.reverse' class='method'><span id='reverse.v' class='invisible'><code>fn <a href='#tymethod.reverse' class='fnname'>reverse</a>(&mut self)</code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.get_unchecked_mut' class='method'><span id='get_unchecked_mut.v' class='invisible'><code>unsafe fn <a href='#tymethod.get_unchecked_mut' class='fnname'>get_unchecked_mut</a><I>(&mut self, index: I) -> &mut I::<a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">Output</a> <span class="where fmt-newline">where<br> I: <a class="trait" href="../../core/slice/trait.SliceIndex.html" title="trait core::slice::SliceIndex">SliceIndex</a><Self>, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.as_mut_ptr' class='method'><span id='as_mut_ptr.v' class='invisible'><code>fn <a href='#tymethod.as_mut_ptr' class='fnname'>as_mut_ptr</a>(&mut self) -> *mut Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.contains' class='method'><span id='contains.v' class='invisible'><code>fn <a href='#tymethod.contains' class='fnname'>contains</a>(&self, x: &Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> bool <span class="where fmt-newline">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.starts_with' class='method'><span id='starts_with.v' class='invisible'><code>fn <a href='#tymethod.starts_with' class='fnname'>starts_with</a>(&self, needle: &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>]) -> bool <span class="where fmt-newline">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.ends_with' class='method'><span id='ends_with.v' class='invisible'><code>fn <a href='#tymethod.ends_with' class='fnname'>ends_with</a>(&self, needle: &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>]) -> bool <span class="where fmt-newline">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>, </span></code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3><h3 id='tymethod.rotate' class='method'><span id='rotate.v' class='invisible'><code>fn <a href='#tymethod.rotate' class='fnname'>rotate</a>(&mut self, mid: usize)</code></span></h3><div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>slice_rotate </code><a href="https://github.com/rust-lang/rust/issues/41891">#41891</a>)</div></div><h3 id='tymethod.clone_from_slice' class='method'><span id='clone_from_slice.v' class='invisible'><code>fn <a href='#tymethod.clone_from_slice' class='fnname'>clone_from_slice</a>(&mut self, src: &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>]) <span class="where fmt-newline">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><div class='since' title='Stable since Rust version 1.7.0'>1.7.0</div></span></h3><h3 id='tymethod.copy_from_slice' class='method'><span id='copy_from_slice.v' class='invisible'><code>fn <a href='#tymethod.copy_from_slice' class='fnname'>copy_from_slice</a>(&mut self, src: &[Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>]) <span class="where fmt-newline">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></code><div class='since' title='Stable since Rust version 1.9.0'>1.9.0</div></span></h3><h3 id='tymethod.sort_unstable' class='method'><span id='sort_unstable.v' class='invisible'><code>fn <a href='#tymethod.sort_unstable' class='fnname'>sort_unstable</a>(&mut self) <span class="where fmt-newline">where<br> Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>: <a class="trait" href="../../core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></code></span></h3><div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>sort_unstable </code><a href="https://github.com/rust-lang/rust/issues/40585">#40585</a>)</div></div><h3 id='tymethod.sort_unstable_by' class='method'><span id='sort_unstable_by.v' class='invisible'><code>fn <a href='#tymethod.sort_unstable_by' class='fnname'>sort_unstable_by</a><F>(&mut self, compare: F) <span class="where fmt-newline">where<br> F: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>, &Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> <a class="enum" href="../../core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>, </span></code></span></h3><div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>sort_unstable </code><a href="https://github.com/rust-lang/rust/issues/40585">#40585</a>)</div></div><h3 id='tymethod.sort_unstable_by_key' class='method'><span id='sort_unstable_by_key.v' class='invisible'><code>fn <a href='#tymethod.sort_unstable_by_key' class='fnname'>sort_unstable_by_key</a><B, F>(&mut self, f: F) <span class="where fmt-newline">where<br> F: <a class="trait" href="../../core/ops/trait.FnMut.html" title="trait core::ops::FnMut">FnMut</a>(&Self::<a class="trait" href="../../core/slice/trait.SliceExt.html" title="trait core::slice::SliceExt">Item</a>) -> B,<br> B: <a class="trait" href="../../core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></code></span></h3><div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>sort_unstable </code><a href="https://github.com/rust-lang/rust/issues/40585">#40585</a>)</div></div></div> <h2 id='provided-methods'>Provided Methods</h2> <div class='methods'> <h3 id='method.is_empty' class='method'><span id='is_empty.v' class='invisible'><code>fn <a href='#method.is_empty' class='fnname'>is_empty</a>(&self) -> bool</code><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div></span></h3></div> <h2 id='implementors'>Implementors</h2> <ul class='item-list' id='implementors-list'> <li><code>impl<T> SliceExt for [T]</code></li> </ul><script type="text/javascript" async src="../../implementors/core/slice/trait.SliceExt.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>?</dt> <dd>Show this help dialog</dd> <dt>S</dt> <dd>Focus the search field</dd> <dt>⇤</dt> <dd>Move up in search results</dd> <dt>⇥</dt> <dd>Move down in search results</dd> <dt>⏎</dt> <dd>Go to active search result</dd> <dt>+</dt> <dd>Collapse/expand all sections</dd> </dl> </div> <div class="infos"> <h2>Search Tricks</h2> <p> Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type. </p> <p> Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>. </p> <p> Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>) </p> </div> </div> </aside> <script> window.rootPath = "../../"; window.currentCrate = "core"; </script> <script src="../../main.js"></script> <script defer src="../../search-index.js"></script> </body> </html>