Skip to content

Tracking Issue for core::mem::copy #98262

Description

@jyn514

Feature gate: #![feature(mem_copy_fn)]

This is a tracking issue for core::mem::copy, which is a way - like mem::drop - to copy a value without creating a new closure.

Public API

// core::mem
pub fn copy<T: Copy>(x: &T) -> T {}

Steps / History

Unresolved Questions

  • Should we find a way to make this an associated function on Copy instead?

Activity

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