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 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_prefixandstrip_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§
- copy_
from_ 🔒 ⚠slice_ impl - Copies
srctodest. - 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.