doc.rust-lang.org
pub const fn iter_mut(&mut self) -> IterMut<'_, T>
Returns an iterator that allows modifying each value.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Windows<'a, T>
An iterator over overlapping subslices of length size.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct SplitNMut<'a, T, P>
An iterator over subslices separated by elements that match a predicate function, limited to a given number of splits.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct SplitN<'a, T, P>
An iterator over subslices separated by elements that match a predicate function, limited to a given number of splits.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct SplitMut<'a, T, P>
An iterator over the mutable subslices of the vector which are separated by elements that match pred.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct SplitInclusiveMut<'a, T, P>
An iterator over the mutable subslices of the vector which are separated by elements that match pred. Unlike SplitMut, it contains the matched parts in the ends of the subslices.
struct
core
Stable since 1.51.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct SplitInclusive<'a, T, P>
An iterator over subslices separated by elements that match a predicate function. Unlike Split, it contains the matched part as a terminator of the subslice.
struct
core
Stable since 1.51.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Split<'a, T, P>
An iterator over subslices separated by elements that match a predicate function.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RSplitNMut<'a, T, P>
An iterator over subslices separated by elements that match a predicate function, limited to a given number of splits, starting from the end of the slice.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RSplitN<'a, T, P>
An iterator over subslices separated by elements that match a predicate function, limited to a given number of splits, starting from the end of the slice.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RSplitMut<'a, T, P>
An iterator over the subslices of the vector which are separated by elements that match pred, starting from the end of the slice.
struct
core
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RSplit<'a, T, P>
An iterator over subslices separated by elements that match a predicate function, starting from the end of the slice.
struct
core
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RChunksMut<'a, T>
An iterator over a slice in (non-overlapping) mutable chunks (chunk_size elements at a time), starting at the end of the slice.
struct
core
Stable since 1.31.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const 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 RChunksExactMut<'a, T>
An iterator over a slice in (non-overlapping) mutable chunks (chunk_size elements at a time), starting at the end of the slice.
struct
core
Stable since 1.31.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const 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 RChunksExact<'a, T>
An iterator over a slice in (non-overlapping) chunks (chunk_size elements at a time), starting at the end of the slice.
struct
core
Stable since 1.31.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RChunks<'a, T>
An iterator over a slice in (non-overlapping) chunks (chunk_size elements at a time), starting at the end of the slice.
struct
core
Stable since 1.31.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn into_slice(self) -> &'a mut [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 fn as_slice(&self) -> &[T]
Views the underlying data as a subslice of the original data.
method
core
Stable since 1.53.0
Version 1.100.0-nightly