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/adr/0009-uniffi-tagging.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ The code in `uniffi_macros::setup_scaffolding` generates a zero-sized `crate::Un
11
11
For example, when lowering a type we use `<#type as Lower<crate::UniffiTag>>::lower`.
12
12
13
13
The reason for this is the so-called "Orphan rule", which prevents generated code from implemented a remote trait on a remote type.
14
-
If the FFI traits did not have a generic parameter, then it would be impossible to generate an code that implements those traits for a type defined in another crate.
14
+
If the FFI traits did not have a generic parameter, then it would be impossible to generate code that implements those traits for a type defined in another crate.
15
15
See [ADR-0006 Wrapping types](./0006-wrapping-types.md) for more discussion.
16
16
17
17
For local types we have a choice: implement only for the local tag (`impl Lift<crate::UniffiTag> for MyType`) or implement it for all tags (`impl<UT> Lift<UT> for MyType)`).
0 commit comments