doc.rust-lang.org
pub struct IterMut<'a, T>
Mutable slice iterator.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn as_slice(&self) -> &'a [T]
Views the underlying data as a subslice of the original data.
method
core
Stable since 1.4.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Iter<'a, T>
Immutable slice iterator
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct ChunksMut<'a, T>
An iterator over a slice in (non-overlapping) mutable chunks (chunk_size elements at a time), starting at the beginning of the slice.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn into_remainder(self) -> &'a mut [T]
Returns the remainder of the original slice that is not going to be returned by the iterator. The returned slice has at most chunk_size-1 elements.
method
core
Stable since 1.31.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct ChunksExactMut<'a, T>
An iterator over a slice in (non-overlapping) mutable chunks (chunk_size elements at a time), starting at the beginning of the slice.
struct
core
Stable since 1.31.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn remainder(&self) -> &'a [T]
Returns the remainder of the original slice that is not going to be returned by the iterator. The returned slice has at most chunk_size-1 elements.
method
core
Stable since 1.31.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct ChunksExact<'a, T>
An iterator over a slice in (non-overlapping) chunks (chunk_size elements at a time), starting at the beginning of the slice.
struct
core
Stable since 1.31.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Chunks<'a, T>
An iterator over a slice in (non-overlapping) chunks (chunk_size elements at a time), starting at the beginning of the slice.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct ChunkByMut<'a, T, P>
An iterator over slice in (non-overlapping) mutable chunks separated by a predicate.
struct
core
Stable since 1.77.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct ChunkBy<'a, T, P>
An iterator over slice in (non-overlapping) chunks separated by a predicate.
struct
core
Stable since 1.77.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct ArrayWindows<'a, T, const N: usize>
A windowed iterator over a slice in overlapping chunks (N elements at a time), starting at the beginning of the slice
struct
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn iter(&self) -> Iter<'_, T>
Returns an iterator over the slice.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> bool
Checks if the elements of this slice are sorted using the given key extraction function.
method
core
Stable since 1.82.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool
Checks if the elements of this slice are sorted using the given comparator function.
method
core
Stable since 1.82.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn is_sorted(&self) -> bool
Checks if the elements of this slice are sorted.
method
core
Stable since 1.82.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_empty(&self) -> bool
Returns true if the slice has a length of 0.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii(&self) -> bool
Checks if all bytes in this slice are within the ASCII range.
method
core
Stable since 1.23.0
Version 1.100.0-nightly
doc.rust-lang.org
type Output
The output type returned by methods.
associated_type
core
Stable since 1.28.0
Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe trait SliceIndex<T>
A helper trait used for indexing operations.
trait
core
Stable since 1.28.0
Version 1.100.0-nightly