Module show_notes::e029::ffi

source ·
Expand description

The module with all the unsafe code in it! You’ll want to poke at this!

(Note that this is private, and we wouldn’t normally make this kind of code visible in documentation at all. Instead, we would only make public the safe abstraction around it which we’re providing at the root of this module (see e027!). I’ve set a RUSTDOCFLAGS value in the Makefile at the root of the repo so you get these docstring notes for it!)

Functions§

  • add 🔒
    A mostly-trivial example: addition in C instead of in Rust. (See the docs for e029::add for why it isn’t totally trivial.)
  • translate 🔒
    An example of a C function we can call with an object.