mment-func-encode_into_">static func encode(<wbr>_:<wbr>into:)</a>
        
<div class="comment collapse" id="comment-func-encode_into_"><div class="p">
    <p>Encodes a Unicode scalar as a series of code units by calling the given
closure on each code unit.</p>

<p>For example, the musical fermata symbol (&quot;ùÑê&quot;) is a single Unicode scalar
value (<code>\u{1D110}</code>) but requires four code units for its UTF-8
representation. The following code encodes a fermata in UTF-8:</p>

<pre><code c