Expand description
The Str
type.
This module implements a string type that combines Cow<'static, str>
with Cow<'a, str>
. A
Str
can hold borrowed, static, owned, or shared data. Internally, it’s more efficient than a
Cow
to access because it doesn’t need to hop through enum variants.
Values can be converted into Str
s either directly using methods like Str::new
, or
generically through the ToStr
trait.
Structs§
- Str
- A string value.