Feature gate: #![feature(str_copy_from_str)]
This is a tracking issue for str::copy_from_str, which copies a same-length &str into a mutable str in place.
Public API
impl str { // Panics if `self.len() != src.len()`. pub fn copy_from_str(&mut self, src: &str); }
Steps / History
- ACP: Add
str::copy_from_strand other mutatingstrmethods libs-team#709 - Implementation PR Implement
str::copy_from_str#159846 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None known. The ACP accepted
copy_from_strand rejectedcopy_within;swap_with_strwas left out pending a concrete use case.