Lines Matching refs:slice
25 use core::slice::sort;
39 pub use core::slice::range;
41 pub use core::slice::ArrayChunks;
43 pub use core::slice::ArrayChunksMut;
45 pub use core::slice::ArrayWindows;
47 pub use core::slice::EscapeAscii;
49 pub use core::slice::SliceIndex;
51 pub use core::slice::{from_mut, from_ref};
53 pub use core::slice::{from_mut_ptr_range, from_ptr_range};
55 pub use core::slice::{from_raw_parts, from_raw_parts_mut};
57 pub use core::slice::{Chunks, Windows};
59 pub use core::slice::{ChunksExact, ChunksExactMut};
61 pub use core::slice::{ChunksMut, Split, SplitMut};
63 pub use core::slice::{GroupBy, GroupByMut};
65 pub use core::slice::{Iter, IterMut};
67 pub use core::slice::{RChunks, RChunksExact, RChunksExactMut, RChunksMut};
69 pub use core::slice::{RSplit, RSplitMut};
71 pub use core::slice::{RSplitN, RSplitNMut, SplitN, SplitNMut};
73 pub use core::slice::{SplitInclusive, SplitInclusiveMut};
361 ($t:ty, $slice:ident, $f:ident) => {{ in sort_by_cached_key()
363 $slice.iter().map($f).enumerate().map(|(i, k)| (k, i as $t)).collect(); in sort_by_cached_key()
368 for i in 0..$slice.len() { in sort_by_cached_key()
374 $slice.swap(i, index as usize); in sort_by_cached_key()
692 fn concat(slice: &Self) -> Self::Output; in concat()
704 fn join(slice: &Self, sep: Separator) -> Self::Output; in join()
712 fn concat(slice: &Self) -> Vec<T> { in concat()
713 let size = slice.iter().map(|slice| slice.borrow().len()).sum(); in concat()
715 for v in slice { in concat()
727 fn join(slice: &Self, sep: &T) -> Vec<T> { in join()
728 let mut iter = slice.iter(); in join()
733 let size = slice.iter().map(|v| v.borrow().len()).sum::<usize>() + slice.len() - 1; in join()
750 fn join(slice: &Self, sep: &[T]) -> Vec<T> { in join()
751 let mut iter = slice.iter(); in join()
757 slice.iter().map(|v| v.borrow().len()).sum::<usize>() + sep.len() * (slice.len() - 1); in join()