File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -705,8 +705,14 @@ for more information.
705
705
# Representing opaque structs
706
706
707
707
Sometimes, a C library wants to provide a pointer to something, but not let you
708
- know the internal details of the thing it wants. The simplest way is to use a
709
- ` void * ` argument:
708
+ know the internal details of the thing it wants. The simplest way is to use "extern types".
709
+ But it's currently (as of June 2021) unstable and has some unresolved questions,
710
+ see the [ RFC page] [ extern-type-rfc ] and the [ tracking issue] [ extern-type-issue ] for more details.
711
+
712
+ [ extern-type-issue ] : https://github.com/rust-lang/rust/issues/43467
713
+ [ extern-type-rfc ] : https://rust-lang.github.io/rfcs/1861-extern-types.html
714
+
715
+ Alternatively, we can use a ` void * ` argument:
710
716
711
717
``` c
712
718
void foo (void * arg);
You can’t perform that action at this time.
0 commit comments