Skip to content

Commit

Permalink
Deployed a31d4f8 to next with MkDocs 1.6.0 and mike 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
uniffi-docs[bot] committed Nov 28, 2024
1 parent 139bee0 commit 22b8c60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions next/udl/remote_ext_types.html
Original file line number Diff line number Diff line change
Expand Up @@ -1382,8 +1382,8 @@ <h2 id="proc-macros_1">Proc-macros</h2>
<h2 id="udl_1">UDL</h2>
<p>Suppose you depend on the <code>DemoDict</code> type from another UniFFIed crate in your workspace.
You can reference this type by using the <code>[External]</code> attribute to wrap a typedef describing the concrete type.</p>
<div class="highlight"><pre><span></span><code>[External]
typedef<span class="w"> </span>dictionary<span class="w"> </span>One;
<div class="highlight"><pre><span></span><code>[External<span class="o">=</span><span class="s2">&quot;demo_crate&quot;</span>]
typedef<span class="w"> </span>dictionary<span class="w"> </span>DemoDict;

<span class="o">//</span><span class="w"> </span>Now<span class="w"> </span>define<span class="w"> </span>our<span class="w"> </span>own<span class="w"> </span>dictionary<span class="w"> </span>which<span class="w"> </span>references<span class="w"> </span>the<span class="w"> </span>external<span class="w"> </span>type.
dictionary<span class="w"> </span>ConsumingDict<span class="w"> </span>{
Expand All @@ -1407,7 +1407,7 @@ <h2 id="remote-external-types">Remote + External types</h2>
</code></pre></div>
<h2 id="udl_2">UDL</h2>
<p>UDL-users will also need to add the external type definition:</p>
<div class="highlight"><pre><span></span><code>[External]
<div class="highlight"><pre><span></span><code>[External<span class="o">=</span><span class="s2">&quot;crate_a&quot;</span>]
typedef<span class="w"> </span>enum<span class="w"> </span>IpAddr;
</code></pre></div>
<h2 id="remote-custom-types">Remote custom types</h2>
Expand Down

0 comments on commit 22b8c60

Please sign in to comment.