{
  "$type": "site.standard.document",
  "path": "/t/ffi-proof-slice-from-raw-parts/23971#post_4",
  "publishedAt": "2026-02-04T22:12:49.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "I think having a checked version of these functions for FFI use is a good idea. There's little downside to having the checks. And if you do need every to save every cycle of performance then the uncheck version still exists and can be used in that specific situation.",
  "title": "FFI-proof slice::from_raw_parts"
}