</div>
        

<p>Structs are immutable data structures that map keys to values. They are
semantically similar to <a href="/docs/data_structures/tables.html">tables</a>, but
are immutable. They also can be used as keys in tables and other structs, and
follow expected equality semantics. Like tables, they are backed by an
efficient, native hash table.
</p>
<p>To create a struct, you may use a struct literal or the <code class="mendoza-code">struct</code> function.
</p>
<pre class="mendoza-codeblock"><code 