Skip to content

Commit

Permalink
Deployed 68701de 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 19, 2024
1 parent f70c57f commit 1c58841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/udl/remote_ext_types.html
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ <h1 id="special-cases-for-remote-types">Special cases for remote types</h1>
<h2 id="remote-external-types">Remote + External types</h2>
<p>Types that are remote and external require a <code>use_remote_type!</code> macro call.</p>
<p>If <code>crate_a</code> defines <a href="https://doc.rust-lang.org/std/net/enum.IpAddr.html">IpAddr</a> as a remote type, then <code>crate_b</code> can use that type with the following Rust code:</p>
<div class="highlight"><pre><span></span><code><span class="n">uniffi</span><span class="p">::</span><span class="n">use_remote_type</span><span class="o">!</span><span class="p">(</span><span class="n">IpAddr</span><span class="p">,</span><span class="w"> </span><span class="n">crate_a</span><span class="p">);</span>
<div class="highlight"><pre><span></span><code><span class="n">uniffi</span><span class="p">::</span><span class="n">use_remote_type</span><span class="o">!</span><span class="p">(</span><span class="n">crate_a</span><span class="p">,</span><span class="w"> </span><span class="n">IpAddr</span><span class="p">);</span>
</code></pre></div>
<h2 id="udl_2">UDL</h2>
<p>UDL-users will also need to add the external type definition:</p>
Expand Down

0 comments on commit 1c58841

Please sign in to comment.