Rust · Class
String
String is Rust’s owned, growable UTF-8 string type. It stores text in a heap buffer and supports adding, converting, and reading string data.
Last updated
- Since
- 1.0.0
Syntax
pub struct String { /* private fields */ }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
strOsStringToStringfrom_utf8from_utf8_lossypushpush_strwith_capacity