Module konst::string[][src]

const fn equivalents of str methods.

Functions

cmp_option_strcmp

Compares two Option<&'a str>, returning the ordering of left relative to right.

cmp_str

A const equivalent of str::cmp.

eq_option_strcmp

Compares two Option<&'a str> for equality.

eq_str

A const equivalent of &str equality comparison.

str_contains

A const equivalent of str::contains , taking a &str parameter, searching in &left[from..].

str_ends_with

A const equivalent of str::ends_with , taking a &str parameter.

str_find

A const equivalent of str::find , taking a &str parameter, searching in &left[from..].

str_rcontains

A const equivalent of str::contains , taking a &str parameter, searching in &left[..=from] from the end.

str_rfind

A const equivalent of str::rfind , taking a &str parameter, searching in &left[..=from].

str_starts_with

A const equivalent of str::starts_with , taking a &str parameter.