Expand description
Slice management and manipulation.
For more details see std::slice
.
Re-exportsยง
pub use ascii::EscapeAscii;
pub use index::SliceIndex;
pub use iter::ChunkBy;
pub use iter::ChunkByMut;
pub use iter::Chunks;
pub use iter::ChunksMut;
pub use iter::Windows;
pub use iter::ChunksExact;
pub use iter::ChunksExactMut;
pub use iter::Iter;
pub use iter::IterMut;
pub use iter::RChunks;
pub use iter::RChunksExact;
pub use iter::RChunksExactMut;
pub use iter::RChunksMut;
pub use iter::RSplit;
pub use iter::RSplitMut;
pub use iter::RSplitN;
pub use iter::RSplitNMut;
pub use iter::Split;
pub use iter::SplitMut;
pub use iter::SplitN;
pub use iter::SplitNMut;
pub use iter::SplitInclusive;
pub use iter::SplitInclusiveMut;
pub use raw::from_mut;
pub use raw::from_ref;
pub use raw::from_raw_parts;
pub use raw::from_raw_parts_mut;
#[doc(hidden)] pub use ascii::is_ascii_simple;
Experimental pub use index::range;
Experimental pub use index::try_range;
Experimental pub use iter::ArrayWindows;
Experimental pub use iter::ArrayChunks;
Experimental pub use iter::ArrayChunksMut;
Experimental pub use raw::from_mut_ptr_range;
Experimental pub use raw::from_ptr_range;
Experimental
Modulesยง
- ascii ๐
- Operations on ASCII
[u8]
. - cmp ๐
- Comparison traits for
[T]
. - index ๐
- Indexing implementations for
[T]
. - iter ๐
- Definitions of a bunch of iterators for
[T]
. - private_
get_ ๐disjoint_ mut_ index - raw ๐
- Free functions to create
&[T]
and&mut [T]
. - rotate ๐
- specialize ๐
- memchr
Experimental - Pure Rust memchr implementation, taken from rust-memchr
- sort ๐ป
Experimental - This module and the contained sub-modules contains the code for efficient and robust sort
implementations, as well as the domain adjacent implementation of
select_nth_unstable
.
Enumsยง
- Direction ๐
- GetDisjoint
MutError - The error type returned by
get_disjoint_mut
.
Traitsยง
- Clone
From ๐Spec - GetDisjoint
MutIndex Experimental - A helper trait for
<[T]>::get_disjoint_mut()
. - Slice
Pattern Experimental - Patterns in slices - currently, only used by
strip_prefix
andstrip_suffix
. At a future point, we hope to generalisecore::str::Pattern
(which at the time of writing is limited tostr
) to slices, and then this trait will be replaced or abolished.
Functionsยง
- get_
disjoint_ ๐check_ valid - This checks every index against each other, and against
len
. - split_
point_ ๐of - Calculates the direction and split point of a one-sided range.