We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
str::split_at_unchecked()
1 parent f07edf7 commit 463d8b8Copy full SHA for 463d8b8
core/src/str/mod.rs
@@ -952,6 +952,7 @@ impl str {
952
///
953
/// The caller must ensure that `mid` is a valid byte offset from the start
954
/// of the string and falls on the boundary of a UTF-8 code point.
955
+ #[inline]
956
const unsafe fn split_at_unchecked(&self, mid: usize) -> (&str, &str) {
957
let len = self.len();
958
let ptr = self.as_ptr();
0 commit comments