Add example to FFI guide

of Rust code to be called from C.

Fixes #10489.