Open
Description
Feature gate: #![feature(str_from_raw_parts)]
This is a tracking issue for ACP#167, which adds core::str::from_raw_parts[_mut]
.
Public API
// core::str
pub const unsafe fn from_raw_parts<'a>(ptr: *const u8, len: usize) -> &'a str
pub const unsafe fn from_raw_parts_mut<'a>(ptr: *mut u8, len: usize) -> &'a mut str
Steps / History
- Implementation (take 1): Implement
str::from_raw_parts()
andstr::from_raw_parts_mut()
#107207 - Implementation (take 2): Initial implementation of
str::from_raw_parts[_mut]
#119466 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.