
SystemsGuide
Writing a Safe Wrapper Around Unsafe Code in Rust Explained
The goal of unsafe code is to contain it. A safe wrapper has a small unsafe core, private fields that protect invariants and an API that cannot be misused from safe code.
15 min read