You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs.md
+85-18Lines changed: 85 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -282,7 +282,76 @@ fn bar() -> Foo { .. } // Will be emitted as `struct foo bar();`
282
282
283
283
### Struct Annotations
284
284
285
-
* field-names=\[field1, field2, ...\] -- sets the names of all the fields in the output struct. These names will be output verbatim, and are not eligible for renaming.
285
+
* field-names=\[field1, field2, ...\] -- sets the names of all the fields in the output
286
+
struct. These names will be output verbatim, and are not eligible for renaming.
287
+
288
+
* transparent-typedef -- when emitting the typedef for a transparent struct, mark it as
289
+
transparent. All references to the struct will be replaced with the type of its underlying NZST
290
+
field, effectively making the struct invisible on the FFI side. For example, consider the
0 commit comments