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
@@ -299,7 +299,76 @@ fn bar() -> Foo { .. } // Will be emitted as `struct foo bar();`
299
299
300
300
### Struct Annotations
301
301
302
-
* 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.
302
+
* field-names=\[field1, field2, ...\] -- sets the names of all the fields in the output
303
+
struct. These names will be output verbatim, and are not eligible for renaming.
304
+
305
+
* transparent-typedef -- when emitting the typedef for a transparent struct, mark it as
306
+
transparent. All references to the struct will be replaced with the type of its underlying NZST
307
+
field, effectively making the struct invisible on the FFI side. For example, consider the
0 commit comments