---
title: Set in Rust using HashSet
timestamp: 2024-05-03T10:40:01
author: szabgab
published: true
description: Sets in Rust are implemented as Hashes using the unit as the value.
tags:
    - HashSet
todo:
    - TODO
---


In Rust sets are implemented as HashMaps with the value being the unit `()`.

* [Create empty HashSet, insert elements](/create-hashset-insert-elements)
* ...

