Add internal functions to rust
Rust Internals [Unofficial]
March 6, 2026
Are you looking for pub(crate)?
Also, if the caller must satisfy some safety invariant, the function should probably be marked unsafe.
pub(crate) unsafe fn unsafe_function() {
todo!()
}
Discussion in the ATmosphere