---
title: "Discussion on \"Generics: The \"Template Contract\"\" | Hashnode"
description: "Discussion on \"Generics: The \"Template Contract\"\". If you are a frontend developer coming from TypeScript, you actually already understand the core concept of Generics in Rust! They solve the exact same problem in both languages: writing reusable code that handles multiple types without sacrificing s..."
url: "https://hashnode.com/posts/generics-the-template-contract/69d4e001d313d17ac60f5054"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Generics: The "Template Contract"](https://yafi.hashnode.dev/generics-the-template-contract?utm_source=hashnode&utm_medium=feed)

If you are a frontend developer coming from TypeScript, you actually already understand the core concept of Generics in Rust! They solve the exact same problem in both languages: writing reusable code that handles multiple types without sacrificing s...

Apr 7 · 2 min read · yafi.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#generics](https://hashnode.com/tag/generics)
-   [#frontend](https://hashnode.com/tag/frontend)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Muhammad Yafi Alhakim](https://hashnode.com/@yafialhakim)

@yafialhakim · Jakarta, Indonesia

  
[View profile](https://hashnode.com/@yafialhakim)

Frontend Engineer @MySkill.id

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
