Module str

Source
Expand description

String types and related functionality.

Extends: std::{str, string}


Macros§

_strdep_const_str
&str compile-time operations, namespaced from the const-str crate.
strdep_const_str
&str compile-time operations, namespaced from the const-str crate.
strjoin
Joins multiple string slices in compile-time.

Structs§

CStr
core Representation of a borrowed C string (See CString).
CString
alloc An owned, C-compatible, nul-terminated string with no nul bytes in the middle.
OsStrstd
std Borrowed reference to an OS string (See OsString).
OsStringstd
std A type for owned, mutable native strings, interconvertible with Rust strings.
Strstr
🌐 A string slice namespace.
Stringalloc
alloc A UTF-8–encoded, growable string.
StringNonul_str_nonul
A UTF-8 string with up to u8::MAX bytes, excluding nul chars
StringU8_str_u8
A UTF-8–encoded string, backed by an array with u8::MAX bytes of capacity.

Traits§

ExtStrstr
Extension trait providing additional methods for &str.
ExtStringstr and alloc
Extension trait providing additional methods for String.
FromStr
core Parse a value from a string.
ToStringalloc
alloc A trait for converting a value to a String.