Expand description
const fn equivalents of str methods.
Macros§
- Makes a
&'static strfrom an const iterator over&strs orchars - Macro equivalent of
<[&str]>::concat, which takes a constant as an argument. - Macro equivalent of
<[&str]>::join, which takes constants as arguments.
Structs§
- Const equivalent of
core::str::CharIndices - Const equivalent of
core::str::Chars - Const equivalent of
core::iter::Rev<core::str::CharIndices<'_>> - Const equivalent of
core::iter::Rev<core::str::Chars<'_>> - Const equivalent of
core::str::RSplit<'a, P> - Const equivalent of
core::str::RSplitTerminator<'a, P> - Const equivalent of
core::str::Split<'a, P> - Const equivalent of
core::str::SplitTerminator<'a, P> - Wrapper around
core::str::Utf8Errorto provide apanicmethod for use inunwrap_ctx, returned byfrom_utf8.
Traits§
- A string pattern.
Functions§
- Checks that the start and end are valid utf8 char boundaries when the
"debug"feature is enabled. - Cosnt equivalent of
str::char_indices. - Cosnt equivalent of
str::chars. - Compares two
Option<&'a str>, returning the ordering ofleftrelative toright. - A const equivalent of
str::cmp. - A const equivalent of
str::contains, taking aPatternparameter. - A const equivalent of
str::ends_with, taking aPatternparameter. - Compares two
Option<&'a str>for equality. - A const equivalent of
&strequality comparison. - Advances
thisup to the first instance ofneedle. - Advances
thispast the first instance ofneedle. - Delegates to
core::str::from_utf8, wrapping the error to provide apanicmethod for use inunwrap_ctx - A const equivalent of
string.get(from..). - A const equivalent of
string.get(start..end). - A const equivalent of
string.get(..len). - Const equivalent of
str::is_char_boundary. - A const equivalent of
str::contains, taking aPatternparameter. - A const equivalent of
str::rfind, taking aPatternparameter. - Truncates
thisto the last instance ofneedle. - Truncates
thisto before the last instance ofneedle. - Const equivalent of
str::rsplit. - A const-equivalent of the
str::rsplit_oncemethod. - Const equivalent of
str::rsplit_terminator. - Const equivalent of
str::split. - A const equivalent of
str::split_at - A const-equivalent of the
str::split_oncemethod. - Const equivalent of
str::split_terminator, which only takes a&strdelimiter. - A const equivalent of
str::starts_with, taking aPatternparameter. - A const equivalent of
&string[start..]. - A const equivalent of
&string[start..end]. - A const equivalent of
&string[..len]. - A const subset of
str::strip_prefix. - A const subset of
str::strip_suffix. - A const subset of
str::trimwhich only removes ascii whitespace. - A const subset of
str::trim_endwhich only removes ascii whitespace. - A const subset of
str::trim_end_matches. - A const subset of
str::trim_matches. - A const subset of
str::trim_startwhich only removes ascii whitespace. - A const subset of
str::trim_start_matches.