Module slice

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 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 🔒
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.