Expand description
const fn
equivalents of str
methods.
Re-exports
pub use deprecated_reexports::*;
Deprecated
Modules
deprecated_reexportsDeprecated
Reexports for
0.2.*
patch releases, will be removed in 0.3.0
Macros
Structs
RSplit
rust_1_64
Const equivalent of
core::str::RSplit<'a, &'b str>
RSplitTerminator
rust_1_64
Const equivalent of
core::str::RSplitTerminator<'a, &'b str>
Split
rust_1_64
Const equivalent of
core::str::Split<'a, &'b str>
SplitTerminator
rust_1_64
Const equivalent of
core::str::SplitTerminator<'a, &'b str>
Functions
Compares two
Option<&'a str>
, returning the ordering of left
relative to right
.A const equivalent of
str::cmp
.A const equivalent of
str::ends_with
, taking a &str
parameter.Compares two
Option<&'a str>
for equality.A const equivalent of
&str
equality comparison.find_keep
rust_1_55
Advances
this
up to the first instance of needle
.find_skip
rust_1_55
Advances
this
past the first instance of needle
.from_utf8
rust_1_55
A const equivalent of
std::str::from_utf8
,
requires Rust 1.55 and the "rust_1_55"
feature.get_from
rust_1_55
A const equivalent of
string.get(from..)
.get_range
rust_1_55
A const equivalent of
string.get(start..end)
.get_up_to
rust_1_55
A const equivalent of
string.get(..len)
.A const equivalent of
str::contains
, taking a &str
parameter, searching in &left[..=from]
from the end.rfind_keep
rust_1_55
Truncates
this
to the last instance of needle
.rfind_skip
rust_1_55
Truncates
this
to before the last instance of needle
.rsplit
rust_1_64
Const equivalent of
str::rsplit
, which only takes a &str
delimiter.rsplit_once
rust_1_64
A const-equivalent of the
str::rsplit_once
method.rsplit_terminator
rust_1_64
Const equivalent of
str::rsplit_terminator
, which only takes a &str
delimiter.split
rust_1_64
Const equivalent of
str::split
, which only takes a &str
delimiter.split_at
rust_1_55
A const equivalent of
str::split_at
split_once
rust_1_64
A const-equivalent of the
str::split_once
method.split_terminator
rust_1_64
Const equivalent of
str::split_terminator
, which only takes a &str
delimiter.A const equivalent of
str::starts_with
, taking a &str
parameter.str_from
rust_1_55
A const equivalent of
&string[start..]
.str_range
rust_1_55
A const equivalent of
&string[start..end]
.str_up_to
rust_1_55
A const equivalent of
&string[..len]
.strip_prefix
rust_1_55
A const subset of
str::strip_prefix
, this only takes a &str
pattern.strip_suffix
rust_1_55
A const subset of
str::strip_suffix
, this only takes a &str
pattern.trim_end
rust_1_55
A const subset of
str::trim_end
which only removes ascii whitespace.trim_end_matches
rust_1_55
A const subset of
str::trim_end_matches
which only takes a &str
pattern.trim_matches
rust_1_55
A const subset of
str::trim_matches
which only takes a &str
pattern.trim_start
rust_1_55
A const subset of
str::trim_start
which only removes ascii whitespace.trim_start_matches
rust_1_55
A const subset of
str::trim_start_matches
which only takes a &str
pattern.