std::slice

This module provides a dynamically-sized placement into a contiguous [T].

Slices are mutable (&mut [T]) or shared slices (&[T]) of memory represented as a pointer. They implement IntoIter, which duplicates the type IntoIter is being performed on.

Structs, Traits, and Enums

  • StructsChunks (iterates over a non-overlapping slice in chunks of size_of<T> elements at a time), ChunksMut (as for Chunks except are mutable), Iter (immutable iterator), IterMut (mutable iterator), RSplitN and RSplitNMut (iterate over sub-slices that match a predicate, limited to a given number of splits, and start from the end of the slice). Split and SplitMut (iterator over sub-slice separated by elements that match a predicate function or predicate respectively), and SplitN and SplitNMut (iterate over sub-slices that match predicate function), and Windows (iterates over overlapping sub-slice of length size_of<T>).
  • Functionsfrom_raw_parts (forms a slice from a pointer and length) and from_raw_parts_mut (as from_raw_parts except the slice returned is mutable).
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset