File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -912,8 +912,8 @@ By including at least one private field and no constructor,
912
912
we create an opaque type that we can't instantiate outside of this module.
913
913
(A struct with no field could be instantiated by anyone.)
914
914
We also want to use this type in FFI, so we have to add ` #[repr(C)] ` .
915
- The marker ensures the compiler does not mark the struct as ` Send ` , ` Sync ` and ` Unpin ` are
916
- not applied to the struct . (` *mut u8 ` is not ` Send ` or ` Sync ` , ` PhantomPinned ` is not ` Unpin ` )
915
+ The marker ensures the compiler does not mark the struct as ` Send ` , ` Sync ` , and
916
+ ` Unpin ` . (` *mut u8 ` is not ` Send ` or ` Sync ` , ` PhantomPinned ` is not ` Unpin ` )
917
917
918
918
But because our ` Foo ` and ` Bar ` types are
919
919
different, we’ll get type safety between the two of them, so we cannot
You can’t perform that action at this time.
0 commit comments