Skip to content

Tracking Issue for mem_reshape #130848

Open
Tracking Issue
@hazelwiss

Description

@hazelwiss

Feature gate: #![feature(mem_reshape)]

This is a tracking issue for core::mem::reshape.

core::mem::reshape allows modifying a mutable reference with its moved underlying value.

Public API

// core::mem

let mut x = "some_string".to_string();
reshape(&mut x, |x|  x + " that is reshaped");

println!("{x}");

Steps / History

Unresolved Questions

  • None yet.

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 RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions