Module slice

1.6.0 ยท Source
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 ๐Ÿ”’
memchrExperimental
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 ๐Ÿ”’
GetDisjointMutError
The error type returned by get_disjoint_mut.

Traitsยง

CloneFromSpec ๐Ÿ”’
GetDisjointMutIndexExperimental
A helper trait for <[T]>::get_disjoint_mut().
SlicePatternExperimental
Patterns in slices - currently, only used by strip_prefix and strip_suffix. At a future point, we hope to generalise core::str::Pattern (which at the time of writing is limited to str) 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.