Visitar URL original
Tracking Issue for str::copy_from_str · Issue #159841 · rust-lang/rust · GitHub
Skip to content

Tracking Issue for str::copy_from_str #159841

Open

Description

@valentynkit

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

Unresolved Questions

  • None known. The ACP accepted copy_from_str and rejected copy_within; swap_with_str was left out pending a concrete use case.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩

Activity

  1. added
    T-libs-api[DEPRECATED; DO NOT USE]
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Jul 24, 2026
  2. added 3 commits that reference this issue on Jul 26, 2026
  3. added a commit that references this issue on Jul 27, 2026
  4. added
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    and removed
    T-libs-api[DEPRECATED; DO NOT USE]
    on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions