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:
first
last
split_first
split_last
Modules§
const fn
s 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
pattern
is insideleft
. - Whether
pattern
is the end ofleft
. - Finds the byte offset of
pattern
inleft
. - Advances
this
up to the first instance ofneedle
. - Advances
this
past the first instance ofneedle
. - Returns whether
pattern
is contained insideleft
, searching in reverse. - Finds the byte offset of
pattern
insideleft
, searching in reverse. - Truncates
this
to the last instance ofneedle
. - Truncates
this
to before the last instance ofneedle
. - Whether
pattern
is the start ofleft
. - Remove
prefix
from the start ofleft
. - Remove
suffix
from 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
needle
from the end ofthis
. - Removes all instances of
needle
from the start and end ofthis
. - Removes ascii whitespace from the start of
this
. - Removes all instances of
needle
from the start ofthis
. - Const equivalent of
<[T]>::chunks
- Const equivalent of
<[T]>::chunks_exact
- Compares two
&[u8]
, returning the order ofleft
relative toright
. - Compares two
Option<&'a [u8]>
, returning the ordering ofleft
relative 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