Expand description
const fn equivalents of slice methods.
§Removed in 0.3.0
These functions were removed in 0.3.0 because there is an equivalent const fn in the standard library:
firstlastsplit_firstsplit_last
Modules§
const fns for comparing slices for equality and ordering.
Macros§
- Macro equivalent of
<[&[T]]>::concat, which takes a constant as an argument.
Structs§
- Const equivalent of
core::slice::ArrayChunks - Const equivalent of
core::iter::Rev<core::slice::ArrayChunks> - Const equivalent of
core::slice::Chunks - Const equivalent of
core::slice::ChunksExact - Const equivalent of
core::iter::Rev<core::slice::ChunksExact> - Const equivalent of
core::iter::Rev<core::slice::Chunks> - Const equivalent of
core::slice::Iter. - A const equivalent of
iter::Copied<slice::Iter<'a, T>>. - A const equivalent of
iter::Rev<iter::Copied<slice::Iter<'a, T>>> - Const equivalent of
core::iter::Rev<core::slice::Iter<_>> - Const equivalent of
core::slice::RChunks - Const equivalent of
core::slice::RChunksExact - Const equivalent of
core::iter::Rev<core::slice::RChunksExact> - Const equivalent of
core::iter::Rev<core::slice::RChunks> - The error produced by trying to convert from
&[T]to&[T; N], or from&mut [T]to&mut [T; N]. - Const equivalent of
core::slice::Windows - Const equivalent of
core::iter::Rev<core::slice::Windows>
Traits§
- A byte slice pattern.
Functions§
- Const equivalent of
<[T]>::array_chunks - Const equivalent of
<[T]>::as_chunks - Const equivalent of
<[T]>::as_rchunks - Whether
patternis insideleft. - Whether
patternis the end ofleft. - Finds the byte offset of
patterninleft. - Advances
thisup to the first instance ofneedle. - Advances
thispast the first instance ofneedle. - Returns whether
patternis contained insideleft, searching in reverse. - Finds the byte offset of
patterninsideleft, searching in reverse. - Truncates
thisto the last instance ofneedle. - Truncates
thisto before the last instance ofneedle. - Whether
patternis the start ofleft. - Remove
prefixfrom the start ofleft. - Remove
suffixfrom the end ofleft. - Removes ascii whitespace from the start and end of
this. - Removes ascii whitespace from the end of
this. - Removes all instances of
needlefrom the end ofthis. - Removes all instances of
needlefrom the start and end ofthis. - Removes ascii whitespace from the start of
this. - Removes all instances of
needlefrom the start ofthis. - Const equivalent of
<[T]>::chunks - Const equivalent of
<[T]>::chunks_exact - Compares two
&[u8], returning the order ofleftrelative toright. - Compares two
Option<&'a [u8]>, returning the ordering ofleftrelative toright. - Compares two
&[u8]for equality. - Compares two
Option<&'a [u8]>for equality. - A const equivalent of
slice.get(index) - A const equivalent of
slice.get(start..). - A const equivalent of
slice.get(start..end). - A const equivalent of
slice.get(..len). - Gets a const iterator over
slice, const equivalent of<[T]>::iter - A const equivalent of
slice.iter().copied() - Const equivalent of
<[T]>::rchunks - Const equivalent of
<[T]>::rchunks_exact - A const equivalent of
&slice[start..]. - A const equivalent of
&slice[start..end]. - A const equivalent of
&slice[..len]. - A const equivalent of
<[T]>::split_at - Tries to convert from
&[T]to&[T; N]. - Const equivalent of
<[T]>::windows