3 ms·
Presumably the parent wasn't asking about searching for one during slice in another, but rather locating the original offset of a string slice derived from anot
by couchand 6y ago
Presumably the parent wasn't asking about searching for one during slice in another, but rather locating the original offset of a string slice derived from another.
- masklinn 6y agoAh I see, I'd misunderstood. But there's no guarantee that two &str have any sort of overlap, that relationship is not conserved by the language, so it either would be unsafe or would be failible, it'd basically be pointer-twiddling.