Skip to content

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

Open
@jyn514

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-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