Module konst::string [−][src]
Expand description
const fn
equivalents of str
methods.
Re-exports
pub use deprecated_reexports::*;
Modules
Reexports for 0.2.*
patch releases, will be removed in 0.3.0
Macros
A const equivalent of std::str::from_utf8
,
usable *only in const
s and static
s.
Structs
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::contains
, taking a &str
parameter, searching in &left[from..]
.
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.
A const equivalent of
str::find
, taking a &str
parameter, searching in &left[from..]
.
rust_1_55
Advances this
up to the first instance of needle
.
rust_1_55
Advances this
past the first instance of needle
.
rust_1_55
A const equivalent of std::str::from_utf8
,
requires Rust 1.55 and the "rust_1_55"
feature.
rust_1_55
A const equivalent of string.get(from..)
.
rust_1_55
A const equivalent of string.get(start..end)
.
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.
A const equivalent of
str::rfind
, taking a &str
parameter, searching in &left[..=from]
.
rust_1_55
Truncates this
to the last instance of needle
.
rust_1_55
Truncates this
to before the last instance of needle
.
rust_1_55
A const equivalent of str::split_at
A const equivalent of
str::starts_with
, taking a &str
parameter.
rust_1_55
A const equivalent of &string[start..]
.
rust_1_55
A const equivalent of &string[start..end]
.
rust_1_55
A const equivalent of &string[..len]
.
rust_1_55
A const subset of str::strip_prefix
, this only takes a &str
pattern.
rust_1_55
A const subset of str::strip_suffix
, this only takes a &str
pattern.
rust_1_55
A const subset of str::trim
which only removes ascii whitespace.
rust_1_55
A const subset of str::trim_end
which only removes ascii whitespace.
rust_1_55
A const subset of str::trim_end_matches
which only takes a &str
pattern.
rust_1_55
A const subset of str::trim_matches
which only takes a &str
pattern.
rust_1_55
A const subset of str::trim_start
which only removes ascii whitespace.
rust_1_55
A const subset of str::trim_start_matches
which only takes a &str
pattern.