collections::str::from_utf8_unchecked_mut

Function collections::str::from_utf8_unchecked_mut

pub unsafe fn from_utf8_unchecked_mut(v: &mut [u8]) -> &mut str
???? This is a nightly-only experimental API. (str_mut_extras #41119)

Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8; mutable version.

See the immutable version, from_utf8_unchecked(), for more information.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/collections/str/fn.from_utf8_unchecked_mut.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部