Skip to content

Instantly share code, notes, and snippets.

@brendanzab
Created October 23, 2012 17:04
Show Gist options
  • Select an option

  • Save brendanzab/3940105 to your computer and use it in GitHub Desktop.

Select an option

Save brendanzab/3940105 to your computer and use it in GitHub Desktop.
Rust FFI function parameter conversions

  C                            |  Rust
===========================================================
  T value                      |  value: T
  T *value                     |  value: *T
  T* *value                    |  value: **T
  const T *value               |  value: *T
  const T* const *value        |  value: **T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment