Skip to content

Tracking Issue for str::copy_from_str #159841

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.T-libs-apiRelevant to the library API 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