---
title: "#union-types articles | Hashnode"
description: "Explore 3 articles tagged #union-types on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/union-types"
---

Tag

# #union-types

3 posts · 0 followers

[Muhammad Yafi Alhakim](https://hashnode.com/@yafialhakim) · [Apr 7](https://hashnode.com/posts/structs-enums-the-blueprint-and-state-machine/69d4dff317f859d321cffb70)

### [Structs & Enums: The "Blueprint" and "State Machine"](https://yafi.hashnode.dev/structs-enums-the-blueprint-and-state-machine?utm_source=hashnode&utm_medium=feed)

In JavaScript, you often use plain objects for everything. In Rust, we use Structs and Enums to model data with absolute precision. Think of it as the difference between a "Sketch" and an "Engineering Blueprint." 🏛️ 1. Structs: The "Blueprint" Cont...

2 min read · [yafi.hashnode.dev](https://yafi.hashnode.dev/structs-enums-the-blueprint-and-state-machine?utm_source=hashnode&utm_medium=feed)
