-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Description
The section about the representation of pointers gives an example of C API using Box<T> on the Rust side and mapping it to struct T* on the C side. Box<T> is used both as parameter and return types. If it is sound to use Box<SomethingSized> across FFI boundaries and handle it as struct SomethingSized* or struct SomethingSized const* on the C side, wouldn't it be worth adding a short paragraph stating so to complement the example? It's reassuring to have a clear statement about what is or isn't sound.
If this is already specified somewhere, I apologize. I couldn't find a definitive answer.
comex, mattiekat and singalen
Metadata
Metadata
Assignees
Labels
No labels