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.
2 parents 052d8a0 + 463d8b8 commit 53f9401Copy full SHA for 53f9401
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