Module show_notes::e031

source ·
Expand description

FFI Deep Dive

  • Date: May 11, 2019
  • Subject: Exposing Rust types and functions to C API consumers.
  • download mp3
  • script


  • Demonstrate unions! Combines an enum and a union into a struct that acts mostly like a regular Rust enum.


  • A struct identical to Point, but which is not #[repr(C)]!
  • A simple struct which we can expose to a C API. Note that it is #[repr(C)]!
  • e031: FFI Deep Dive!