{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreic72ruakoq4syjdpbwesjzkxkb2nywnlb3pfxjqnkzvbqvs3clqce",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mgfw2hum5652"
},
"path": "/t/add-internal-functions-to-rust/24060#post_2",
"publishedAt": "2026-03-06T17:53:30.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"pub(crate)"
],
"textContent": "Are you looking for pub(crate)?\n\nAlso, if the caller must satisfy some safety invariant, the function should probably be marked `unsafe`.\n\n\n pub(crate) unsafe fn unsafe_function() {\n todo!()\n }\n",
"title": "Add internal functions to rust"
}