[][src]Module show_notes::e029::ffi

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!)



A mostly-trivial example: addition in C instead of in Rust. (See the docs for e029::add for why it isn't totally trivial.)


An example of a C function we can call with an object.