API documentation for the Rust `String` struct in crate `std`. ... let mut s = String::new(); s.reserve_exact(10); assert!(s.capacity() >= 10); ...
確定! 回上一頁