Expand description
Support for storing Rust data in Erlang terms.
A NIF resource allows you to safely store Rust structs in a term, and therefore keep it across NIF calls. The struct will be automatically dropped when the BEAM GC decides that there are no more references to the resource.
Structs
A reference to a resource of type
T
.